Function at 0x1800851a0
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 [0x180122010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov byte [rcx + 0x18], 1
mov eax, dword [0x180125750]
test al, 1
jne 0x180085205
or eax, 1
mov dword [0x180125750], eax
call fcn.1800820d0
lea rcx, [0x1800d6a80]
call fcn.1800bb44c
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x180125770]
mov rax, qword [0x180125770]
call qword [rax + 0x38]
test al, al
je 0x1800852f6
mov eax, dword [0x180125750]
test al, 1
jne 0x180085249
or eax, 1
mov dword [0x180125750], eax
call fcn.1800820d0
lea rcx, [0x1800d6a80]
call fcn.1800bb44c
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x180125770]
mov rax, qword [0x180125770]
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 0x1800852a8
mov r8, rsi
lea rdx, str.___________________log4z_thread_started________________________________
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [rdi + 0x20]
lea eax, [r14 + rsi]
sub edx, r14d
add edx, eax
mov dword [rdi + 0x20], edx
mov eax, dword [0x180125750]
test al, 1
jne 0x1800852d5
or eax, 1
mov dword [0x180125750], eax
call fcn.1800820d0
lea rcx, [0x1800d6a80]
call fcn.1800bb44c
nop
mov r9d, 0x783
lea r8, str.e:zhanluepdfconverter_srcmisclog4zlog4z.cpp
mov rdx, rdi
lea rcx, [0x180125770]
mov rax, qword [0x180125770]
call qword [rax + 0x40]
xor r13d, r13d
mov r12d, r13d
cmp dword [rbx + 0xa8], r13d
jl 0x18008569e
lea r15, [rbx + 0xc8]
cmp byte [r15 + 0x54], 0
je 0x180085684
mov eax, dword [0x180125750]
test al, 1
jne 0x180085340
or eax, 1
mov dword [0x180125750], eax
call fcn.1800820d0
lea rcx, [0x1800d6a80]
call fcn.1800bb44c
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x180125770]
mov rax, qword [0x180125770]
call qword [rax + 0x38]
test al, al
je 0x180085684
mov eax, dword [0x180125750]
test al, 1
jne 0x180085384
or eax, 1
mov dword [0x180125750], eax
call fcn.1800820d0
lea rcx, [0x1800d6a80]
call fcn.1800bb44c
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x180125770]
mov rax, qword [0x180125770]
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 0x1800853f1
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 0x18008540f
neg rdx
sub rsi, rdi
cmp rsi, 1
jle 0x18008540f
mov byte [rdi], 0x2d
inc rdi
mov qword [rbp - 0x39], rdi
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.1800801f0
mov esi, 5
mov r14, qword [rbp - 0x41]
mov rax, r14
mov rdi, qword [rbp - 0x39]
sub rax, rdi
cmp rax, rsi
jae 0x18008543b
mov rsi, rax
test rax, rax
je 0x180085454
mov r8, rsi
lea rdx, str._key
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, rsi
mov qword [rbp - 0x39], rdi
mov rax, qword [r15 - 8]
lea rdx, [r15 - 0x18]
cmp qword [r15], 0x10
jb 0x180085465
mov rdx, qword [rdx]
mov rsi, r14
sub rsi, rdi
cmp rax, rsi
cmovbe rsi, rax
test rsi, rsi
je 0x180085489
mov r8, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, rsi
mov qword [rbp - 0x39], rdi
mov esi, 6
mov rax, r14
sub rax, rdi
cmp rax, rsi
jae 0x1800854a1
mov rsi, rax
test rax, rax
je 0x1800854ba
mov r8, rsi
lea rdx, str._name
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, rsi
mov qword [rbp - 0x39], rdi
mov rax, qword [r15 + 0x18]
lea rdx, [r15 + 8]
cmp qword [r15 + 0x20], 0x10
jb 0x1800854cc
mov rdx, qword [rdx]
mov rsi, r14
sub rsi, rdi
cmp rax, rsi
cmovbe rsi, rax
test rsi, rsi
je 0x1800854f0
mov r8, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, rsi
mov qword [rbp - 0x39], rdi
mov esi, 6
mov rax, r14
sub rax, rdi
cmp rax, rsi
jae 0x180085508
mov rsi, rax
test rax, rax
je 0x180085521
mov r8, rsi
lea rdx, str._path
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, rsi
mov qword [rbp - 0x39], rdi
mov rax, qword [r15 + 0x38]
lea rdx, [r15 + 0x28]
cmp qword [r15 + 0x40], 0x10
jb 0x180085533
mov rdx, qword [rdx]
mov rsi, r14
sub rsi, rdi
cmp rax, rsi
cmovbe rsi, rax
test rsi, rsi
je 0x180085557
mov r8, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, rsi
mov qword [rbp - 0x39], rdi
mov esi, 7
mov rax, r14
sub rax, rdi
cmp rax, rsi
jae 0x18008556f
mov rsi, rax
test rax, rax
je 0x180085588
mov r8, rsi
lea rdx, str._level
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, rsi
mov qword [rbp - 0x39], rdi
movsxd rdx, dword [r15 + 0x48]
test rdx, rdx
jns 0x1800855a7
neg rdx
sub r14, rdi
cmp r14, 1
jle 0x1800855a7
mov byte [rdi], 0x2d
inc rdi
mov qword [rbp - 0x39], rdi
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.1800801f0
mov r14d, 9
mov rsi, qword [rbp - 0x41]
mov rax, rsi
mov rdi, qword [rbp - 0x39]
sub rax, rdi
cmp rax, r14
jae 0x1800855d4
mov r14, rax
test rax, rax
je 0x1800855e9
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 0x18008560f
mov r14d, 4
cmp rsi, r14
jae 0x180085606
mov r14, rsi
test rsi, rsi
je 0x180085637
lea rdx, str.true
jmp 0x180085629
mov r14d, 5
cmp rsi, r14
jae 0x180085622
mov r14, rsi
test rsi, rsi
je 0x180085637
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 [0x180125750]
test al, 1
jne 0x180085663
or eax, 1
mov dword [0x180125750], eax
call fcn.1800820d0
lea rcx, [0x1800d6a80]
call fcn.1800bb44c
nop
mov r9d, 0x78d
lea r8, str.e:zhanluepdfconverter_srcmisclog4zlog4z.cpp
mov rdx, r13
lea rcx, [0x180125770]
mov rax, qword [0x180125770]
call qword [rax + 0x40]
inc r12d
add r15, 0xa8
cmp r12d, dword [rbx + 0xa8]
jle 0x180085310
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]
lea rdx, [rbp - 0x59]
mov rcx, rbx
call fcn.180085020
test al, al
je 0x180085855
mov rdi, qword [rbp - 0x59]
mov eax, dword [rdi]
test eax, eax
js 0x180085840
cmp eax, dword [rbx + 0xa8]
jg 0x180085840
cdqe
imul rsi, rax, 0xa8
add rsi, rbx
cmp dword [rdi + 4], 0
je 0x180085781
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], 0xf
mov byte [rbp - 0x49], 0
lea rcx, [rbp - 0x49]
call fcn.18000b650
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.180083e70
nop
lea rcx, [rbp - 0x49]
call fcn.1800054e0
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x180085840
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsi + 0x140], r13
jmp 0x180085840
inc qword [rbx + 0x12d0]
cmp byte [rsi + 0x11c], 0
je 0x180085840
mov r8d, dword [rdi + 0xc]
cmp r8d, dword [rsi + 0x110]
jl 0x180085840
cmp byte [rsi + 0x114], 0
je 0x1800857bb
lea rdx, [rdi + 0x24]
mov rcx, rbx
call fcn.180082f10
cmp byte [rsi + 0x115], 0
je 0x18008582e
mov rdx, rdi
mov rcx, rbx
call fcn.1800849e0
test al, al
je 0x180085840
movsxd r14, dword [rdi + 0x20]
mov r9, qword [rsi + 0x140]
test r9, r9
je 0x180085818
test r14, r14
je 0x180085818
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 0x180085818
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x180085818
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 0x1800856d0
mov r14d, r13d
cmp dword [rbx + 0xa8], 0
jl 0x1800858c1
lea rsi, [rbp - 0x29]
lea rdi, [rbx + 0x140]
nop dword [rax]
movzx edx, byte [rdi - 0x24]
movzx eax, dl
test dl, dl
je 0x180085895
cmp dword [rsi], 0
jle 0x180085895
mov rcx, qword [rdi]
test rcx, rcx
je 0x180085892
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 0x1800858aa
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800858aa
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 0x180085870
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x18], 0
jne 0x1800858dc
cmp qword [rbx + 0xf20], 0
je 0x180085910
cmp dword [rbx + 0x30], 0
je 0x1800856d0
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 0x1800856d0
lea rcx, [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0xa0]
jmp 0x1800856c2
mov esi, r13d
cmp dword [rbx + 0xa8], 0
jl 0x180085979
mov r14, r13
lea rdi, [rbx + 0x140]
cmp byte [rdi - 0x24], 0
je 0x180085965
mov byte [rdi - 0x24], 0
test r14, r14
js 0x180085950
cmp esi, dword [rbx + 0xa8]
jg 0x180085950
mov rcx, qword [rdi]
test rcx, rcx
je 0x180085965
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi], r13
jmp 0x180085965
mov r8d, 6
lea rdx, str.log4z:_closeLogger_can_not_close__invalide_logger_id___r_n
mov rcx, rbx
call fcn.180082f10
inc esi
inc r14
add rdi, 0xa8
cmp esi, dword [rbx + 0xa8]
jle 0x180085926
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800ba9e0
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