Function at 0x18018bbd0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18032a080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov byte [rcx + 0x18], 1
mov eax, dword [0x18033c5c4]
test al, 1
jne 0x18018bc35
or eax, 1
mov dword [0x18033c5c4], eax
call fcn.180188100
lea rcx, [0x18024ed30]
call fcn.18022acd4
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x18033c5e0]
mov rax, qword [0x18033c5e0]
call qword [rax + gethostname]
test al, al
je 0x18018bd26
mov eax, dword [0x18033c5c4]
test al, 1
jne 0x18018bc79
or eax, 1
mov dword [0x18033c5c4], eax
call fcn.180188100
lea rcx, [0x18024ed30]
call fcn.18022acd4
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x18033c5e0]
mov rax, qword [0x18033c5e0]
call qword [rax + 0xd8]
mov rdi, rax
movsxd rdx, dword [rax + 0x20]
mov ecx, 0x2000
sub ecx, edx
lea r14, [rax + 0x24]
add r14, rdx
mov esi, 0x47
movsxd rax, ecx
cmp rax, rsi
cmovb rsi, rax
mov eax, r14d
test rsi, rsi
je 0x18018bcd8
mov r8, rsi
lea rdx, str.___________________log4z_thread_started________________________________
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [rdi + 0x20]
lea eax, [rsi + r14]
sub edx, r14d
add edx, eax
mov dword [rdi + 0x20], edx
mov eax, dword [0x18033c5c4]
test al, 1
jne 0x18018bd05
or eax, 1
mov dword [0x18033c5c4], eax
call fcn.180188100
lea rcx, [0x18024ed30]
call fcn.18022acd4
nop
mov r9d, 0x783
lea r8, str.e:zhanluepdfconverter_srcmisclog4zlog4z.cpp
mov rdx, rdi
lea rcx, [0x18033c5e0]
mov rax, qword [0x18033c5e0]
call qword [rax + 0x40]
xor r13d, r13d
mov r12d, r13d
cmp dword [rbx + 0xa8], r13d
jl 0x18018c0fc
lea r15, [rbx + 0xc8]
cmp byte [r15 + 0x54], 0
je 0x18018c0e2
mov eax, dword [0x18033c5c4]
test al, 1
jne 0x18018bd70
or eax, 1
mov dword [0x18033c5c4], eax
call fcn.180188100
lea rcx, [0x18024ed30]
call fcn.18022acd4
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x18033c5e0]
mov rax, qword [0x18033c5e0]
call qword [rax + gethostname]
test al, al
je 0x18018c0e2
mov eax, dword [0x18033c5c4]
test al, 1
jne 0x18018bdb4
or eax, 1
mov dword [0x18033c5c4], eax
call fcn.180188100
lea rcx, [0x18024ed30]
call fcn.18022acd4
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x18033c5e0]
mov rax, qword [0x18033c5e0]
call qword [rax + 0xd8]
mov r13, rax
movsxd rcx, dword [rax + 0x20]
mov edx, 0x2000
sub edx, ecx
lea rdi, [rcx + 0x24]
add rdi, rax
mov qword [rbp - 0x49], rdi
movsxd rcx, edx
lea rsi, [rcx + rdi]
mov qword [rbp - 0x41], rsi
mov r14d, 0xa
cmp rcx, r14
cmovb r14, rcx
mov qword [rbp - 0x39], rdi
test r14, r14
je 0x18018be21
mov r8, r14
lea rdx, str.logger_id
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
movsxd rdx, r12d
test r12d, r12d
jns 0x18018be42
neg rdx
mov rax, rsi
sub rax, rdi
cmp rax, 1
jle 0x18018be42
mov byte [rdi], 0x2d
inc rdi
mov qword [rbp - 0x39], rdi
mov rax, rsi
sub rax, rdi
cmp rax, 0x40
jbe 0x18018be68
mov r9d, 0xa
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.18007d8a0
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x41]
mov r14d, 5
mov rax, rsi
sub rax, rdi
cmp rax, r14
jae 0x18018be81
mov r14, rax
test rax, rax
je 0x18018be9a
mov r8, r14
lea rdx, str._key
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov rax, qword [r15 - 8]
lea rdx, [r15 - 0x18]
cmp qword [r15], 0x10
jb 0x18018beab
mov rdx, qword [rdx]
mov r14, rsi
sub r14, rdi
cmp rax, r14
cmovbe r14, rax
test r14, r14
je 0x18018becf
mov r8, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov r14d, 6
mov rax, rsi
sub rax, rdi
cmp rax, r14
jae 0x18018bee8
mov r14, rax
test rax, rax
je 0x18018bf01
mov r8, r14
lea rdx, str._name
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov rax, qword [r15 + 0x18]
lea rdx, [r15 + 8]
cmp qword [r15 + 0x20], 0x10
jb 0x18018bf13
mov rdx, qword [rdx]
mov r14, rsi
sub r14, rdi
cmp rax, r14
cmovbe r14, rax
test r14, r14
je 0x18018bf37
mov r8, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov r14d, 6
mov rax, rsi
sub rax, rdi
cmp rax, r14
jae 0x18018bf50
mov r14, rax
test rax, rax
je 0x18018bf69
mov r8, r14
lea rdx, str._path
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov rax, qword [r15 + 0x38]
lea rdx, [r15 + 0x28]
cmp qword [r15 + 0x40], 0x10
jb 0x18018bf7b
mov rdx, qword [rdx]
mov r14, rsi
sub r14, rdi
cmp rax, r14
cmovbe r14, rax
test r14, r14
je 0x18018bf9f
mov r8, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
mov r14d, 7
mov rax, rsi
sub rax, rdi
cmp rax, r14
jae 0x18018bfb8
mov r14, rax
test rax, rax
je 0x18018bfd1
mov r8, r14
lea rdx, str._level
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
mov qword [rbp - 0x39], rdi
movsxd rdx, dword [r15 + 0x48]
test rdx, rdx
jns 0x18018bff3
neg rdx
mov rax, rsi
sub rax, rdi
cmp rax, 1
jle 0x18018bff3
mov byte [rdi], 0x2d
inc rdi
mov qword [rbp - 0x39], rdi
mov rax, rsi
sub rax, rdi
cmp rax, 0x40
jbe 0x18018c019
mov r9d, 0xa
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.18007d8a0
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x41]
mov r14d, 9
mov rax, rsi
sub rax, rdi
cmp rax, r14
jae 0x18018c032
mov r14, rax
test rax, rax
je 0x18018c047
mov r8, r14
lea rdx, str._display
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
sub rsi, rdi
cmp byte [r15 + 0x4c], 0
je 0x18018c06d
mov r14d, 4
cmp rsi, r14
jae 0x18018c064
mov r14, rsi
test rsi, rsi
je 0x18018c095
lea rdx, str.true
jmp 0x18018c087
mov r14d, 5
cmp rsi, r14
jae 0x18018c080
mov r14, rsi
test rsi, rsi
je 0x18018c095
lea rdx, str.false
mov r8, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
sub edi, dword [rbp - 0x49]
add dword [r13 + 0x20], edi
mov eax, dword [0x18033c5c4]
test al, 1
jne 0x18018c0c1
or eax, 1
mov dword [0x18033c5c4], eax
call fcn.180188100
lea rcx, [0x18024ed30]
call fcn.18022acd4
nop
mov r9d, 0x78d
lea r8, str.e:zhanluepdfconverter_srcmisclog4zlog4z.cpp
mov rdx, r13
lea rcx, [0x18033c5e0]
mov rax, qword [0x18033c5e0]
call qword [rax + 0x40]
inc r12d
add r15, 0xa8
cmp r12d, dword [rbx + 0xa8]
jle 0x18018bd40
xor r13d, r13d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov qword [rbp - 0x59], r13
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov r15, rax
nop dword [rax + rax]
lea rdx, [rbp - 0x59]
mov rcx, rbx
call fcn.18018ba50
test al, al
je 0x18018c2fb
mov rdi, qword [rbp - 0x59]
mov eax, dword [rdi]
test eax, eax
js 0x18018c2e6
cmp eax, dword [rbx + 0xa8]
jg 0x18018c2e6
cdqe
imul rsi, rax, 0xa8
add rsi, rbx
cmp dword [rdi + 4], 0
je 0x18018c227
movsxd r8, dword [rdi + 0x20]
lea rdx, [rdi + 0x24]
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], InitCommonControls
mov byte [rbp - 0x49], 0
lea rcx, [rbp - 0x49]
call fcn.180007300
nop
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9d, dword [rdi + 8]
mov r8d, dword [rdi + 4]
mov edx, dword [rdi]
mov rcx, rbx
call fcn.18018a370
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x18018c1f5
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18018c1f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18018c3b2
call fcn.18022acec
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], InitCommonControls
mov byte [rbp - 0x49], 0
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x18018c2e6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsi + 0x140], r13
jmp 0x18018c2e6
inc qword [rbx + 0x12d0]
cmp byte [rsi + 0x11c], 0
je 0x18018c2e6
mov r8d, dword [rdi + 0xc]
cmp r8d, dword [rsi + 0x110]
jl 0x18018c2e6
cmp byte [rsi + 0x114], 0
je 0x18018c261
lea rdx, [rdi + 0x24]
mov rcx, rbx
call fcn.1801890e0
cmp byte [rsi + 0x115], 0
je 0x18018c2d4
mov rdx, rdi
mov rcx, rbx
call fcn.18018b2c0
test al, al
je 0x18018c2e6
movsxd r14, dword [rdi + 0x20]
mov r9, qword [rsi + 0x140]
test r9, r9
je 0x18018c2be
test r14, r14
je 0x18018c2be
lea rcx, [rdi + 0x24]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r14
je 0x18018c2be
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x18018c2be
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsi + 0x140], r13
mov eax, dword [rsi + 0x13c]
add eax, dword [rdi + 0x20]
mov dword [rsi + 0x13c], eax
movsxd rax, dword [rdi]
inc dword [rbp + rax*4 - 0x29]
inc qword [rbx + 0x12d8]
movsxd rax, dword [rdi + 0x20]
add qword [rbx + 0x12e0], rax
lea rcx, [rbx + 0x10]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0xe0]
jmp 0x18018c130
mov r14d, r13d
cmp dword [rbx + 0xa8], 0
jl 0x18018c363
lea rsi, [rbp - 0x29]
lea rdi, [rbx + 0x140]
movzx edx, byte [rdi - 0x24]
movzx eax, dl
test dl, dl
je 0x18018c337
cmp dword [rsi], 0
jle 0x18018c337
mov rcx, qword [rdi]
test rcx, rcx
je 0x18018c334
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
movzx eax, byte [rdi - 0x24]
mov dword [rsi], r13d
test al, al
jne 0x18018c34c
mov rcx, qword [rdi]
test rcx, rcx
je 0x18018c34c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi], r13
inc r14d
add rsi, 4
add rdi, 0xa8
cmp r14d, dword [rbx + 0xa8]
jle 0x18018c312
mov ecx, gethostbyname
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x18], 0
jne 0x18018c37e
cmp qword [rbx + 0xf20], 0
je 0x18018c3b9
cmp dword [rbx + 0x30], 0
je 0x18018c130
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
sub rax, r15
movsxd rcx, dword [rbx + 0x30]
cmp rax, rcx
jle 0x18018c130
lea rcx, [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0xa0]
jmp 0x18018c120
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov esi, r13d
cmp dword [rbx + 0xa8], 0
jl 0x18018c423
mov r14, r13
lea rdi, [rbx + 0x140]
nop
cmp byte [rdi - 0x24], 0
je 0x18018c40f
mov byte [rdi - 0x24], 0
test r14, r14
js 0x18018c3fa
cmp esi, dword [rbx + 0xa8]
jg 0x18018c3fa
mov rcx, qword [rdi]
test rcx, rcx
je 0x18018c40f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi], r13
jmp 0x18018c40f
mov r8d, 6
lea rdx, str.log4z:_closeLogger_can_not_close__invalide_logger_id___r_n
mov rcx, rbx
call fcn.1801890e0
inc esi
inc r14
add rdi, 0xa8
cmp esi, dword [rbx + 0xa8]
jle 0x18018c3d0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18022a7d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret