Function at 0x1400181b0
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 [0x14003e050]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov byte [rcx + 0x18], 1
mov eax, dword [0x14003f2d4]
test al, 1
jne 0x140018215
or eax, 1
mov dword [0x14003f2d4], eax
call fcn.140014920
lea rcx, [0x14002dc80]
call fcn.140028944
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x14003f2f0]
mov rax, qword [0x14003f2f0]
call qword [rax + 0x38]
test al, al
je 0x140018306
mov eax, dword [0x14003f2d4]
test al, 1
jne 0x140018259
or eax, 1
mov dword [0x14003f2d4], eax
call fcn.140014920
lea rcx, [0x14002dc80]
call fcn.140028944
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x14003f2f0]
mov rax, qword [0x14003f2f0]
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 0x1400182b8
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 [0x14003f2d4]
test al, 1
jne 0x1400182e5
or eax, 1
mov dword [0x14003f2d4], eax
call fcn.140014920
lea rcx, [0x14002dc80]
call fcn.140028944
nop
mov r9d, 0x783
lea r8, str.e:zhanluepdfconverter_srcmisclog4zlog4z.cpp
mov rdx, rdi
lea rcx, [0x14003f2f0]
mov rax, qword [0x14003f2f0]
call qword [rax + 0x40]
xor r13d, r13d
mov r12d, r13d
cmp dword [rbx + 0xa8], r13d
jl 0x1400186ae
lea r15, [rbx + 0xc8]
cmp byte [r15 + 0x54], 0
je 0x140018694
mov eax, dword [0x14003f2d4]
test al, 1
jne 0x140018350
or eax, 1
mov dword [0x14003f2d4], eax
call fcn.140014920
lea rcx, [0x14002dc80]
call fcn.140028944
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x14003f2f0]
mov rax, qword [0x14003f2f0]
call qword [rax + 0x38]
test al, al
je 0x140018694
mov eax, dword [0x14003f2d4]
test al, 1
jne 0x140018394
or eax, 1
mov dword [0x14003f2d4], eax
call fcn.140014920
lea rcx, [0x14002dc80]
call fcn.140028944
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x14003f2f0]
mov rax, qword [0x14003f2f0]
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 0x140018401
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 0x14001841f
neg rdx
sub rsi, rdi
cmp rsi, 1
jle 0x14001841f
mov byte [rdi], 0x2d
inc rdi
mov qword [rbp - 0x39], rdi
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.140012160
mov esi, 5
mov r14, qword [rbp - 0x41]
mov rax, r14
mov rdi, qword [rbp - 0x39]
sub rax, rdi
cmp rax, rsi
jae 0x14001844b
mov rsi, rax
test rax, rax
je 0x140018464
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 0x140018475
mov rdx, qword [rdx]
mov rsi, r14
sub rsi, rdi
cmp rax, rsi
cmovbe rsi, rax
test rsi, rsi
je 0x140018499
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 0x1400184b1
mov rsi, rax
test rax, rax
je 0x1400184ca
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 0x1400184dc
mov rdx, qword [rdx]
mov rsi, r14
sub rsi, rdi
cmp rax, rsi
cmovbe rsi, rax
test rsi, rsi
je 0x140018500
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 0x140018518
mov rsi, rax
test rax, rax
je 0x140018531
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 0x140018543
mov rdx, qword [rdx]
mov rsi, r14
sub rsi, rdi
cmp rax, rsi
cmovbe rsi, rax
test rsi, rsi
je 0x140018567
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 0x14001857f
mov rsi, rax
test rax, rax
je 0x140018598
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 0x1400185b7
neg rdx
sub r14, rdi
cmp r14, 1
jle 0x1400185b7
mov byte [rdi], 0x2d
inc rdi
mov qword [rbp - 0x39], rdi
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.140012160
mov r14d, 9
mov rsi, qword [rbp - 0x41]
mov rax, rsi
mov rdi, qword [rbp - 0x39]
sub rax, rdi
cmp rax, r14
jae 0x1400185e4
mov r14, rax
test rax, rax
je 0x1400185f9
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 0x14001861f
mov r14d, 4
cmp rsi, r14
jae 0x140018616
mov r14, rsi
test rsi, rsi
je 0x140018647
lea rdx, str.true
jmp 0x140018639
mov r14d, 5
cmp rsi, r14
jae 0x140018632
mov r14, rsi
test rsi, rsi
je 0x140018647
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 [0x14003f2d4]
test al, 1
jne 0x140018673
or eax, 1
mov dword [0x14003f2d4], eax
call fcn.140014920
lea rcx, [0x14002dc80]
call fcn.140028944
nop
mov r9d, 0x78d
lea r8, str.e:zhanluepdfconverter_srcmisclog4zlog4z.cpp
mov rdx, r13
lea rcx, [0x14003f2f0]
mov rax, qword [0x14003f2f0]
call qword [rax + 0x40]
inc r12d
add r15, 0xa8
cmp r12d, dword [rbx + 0xa8]
jle 0x140018320
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.140018030
test al, al
je 0x1400188ab
mov rdi, qword [rbp - 0x59]
mov eax, dword [rdi]
test eax, eax
js 0x140018896
cmp eax, dword [rbx + 0xa8]
jg 0x140018896
cdqe
imul rsi, rax, 0xa8
add rsi, rbx
cmp dword [rdi + 4], 0
je 0x1400187d7
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.14000aa00
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.140016980
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x1400187a5
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400187a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018962
call fcn.14002866c
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], 0xf
mov byte [rbp - 0x49], 0
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x140018896
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsi + 0x140], r13
jmp 0x140018896
inc qword [rbx + 0x12d0]
cmp byte [rsi + 0x11c], 0
je 0x140018896
mov r8d, dword [rdi + 0xc]
cmp r8d, dword [rsi + 0x110]
jl 0x140018896
cmp byte [rsi + 0x114], 0
je 0x140018811
lea rdx, [rdi + 0x24]
mov rcx, rbx
call fcn.140015880
cmp byte [rsi + 0x115], 0
je 0x140018884
mov rdx, rdi
mov rcx, rbx
call fcn.140017860
test al, al
je 0x140018896
movsxd r14, dword [rdi + 0x20]
mov r9, qword [rsi + 0x140]
test r9, r9
je 0x14001886e
test r14, r14
je 0x14001886e
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 0x14001886e
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x14001886e
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 0x1400186e0
mov r14d, r13d
cmp dword [rbx + 0xa8], 0
jl 0x140018913
lea rsi, [rbp - 0x29]
lea rdi, [rbx + 0x140]
movzx edx, byte [rdi - 0x24]
movzx eax, dl
test dl, dl
je 0x1400188e7
cmp dword [rsi], 0
jle 0x1400188e7
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400188e4
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 0x1400188fc
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400188fc
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 0x1400188c2
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x18], 0
jne 0x14001892e
cmp qword [rbx + 0xf20], 0
je 0x140018969
cmp dword [rbx + 0x30], 0
je 0x1400186e0
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 0x1400186e0
lea rcx, [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0xa0]
jmp 0x1400186d2
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 0x1400189d3
mov r14, r13
lea rdi, [rbx + 0x140]
nop
cmp byte [rdi - 0x24], 0
je 0x1400189bf
mov byte [rdi - 0x24], 0
test r14, r14
js 0x1400189aa
cmp esi, dword [rbx + 0xa8]
jg 0x1400189aa
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400189bf
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi], r13
jmp 0x1400189bf
mov r8d, 6
lea rdx, str.log4z:_closeLogger_can_not_close__invalide_logger_id___r_n
mov rcx, rbx
call fcn.140015880
inc esi
inc r14
add rdi, 0xa8
cmp esi, dword [rbx + 0xa8]
jle 0x140018980
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140028370
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