Function at 0x180085280
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 [0x180126050]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov byte [rcx + 0x18], 1
mov eax, dword [0x180129780]
test al, 1
jne 0x1800852e5
or eax, 1
mov dword [0x180129780], eax
call fcn.1800821b0
lea rcx, [0x1800d90f0]
call fcn.1800bdcdc
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x1801297a0]
mov rax, qword [0x1801297a0]
call qword [rax + 0x38]
test al, al
je 0x1800853d6
mov eax, dword [0x180129780]
test al, 1
jne 0x180085329
or eax, 1
mov dword [0x180129780], eax
call fcn.1800821b0
lea rcx, [0x1800d90f0]
call fcn.1800bdcdc
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x1801297a0]
mov rax, qword [0x1801297a0]
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 0x180085388
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 [0x180129780]
test al, 1
jne 0x1800853b5
or eax, 1
mov dword [0x180129780], eax
call fcn.1800821b0
lea rcx, [0x1800d90f0]
call fcn.1800bdcdc
nop
mov r9d, 0x783
lea r8, str.e:zhanluekean_pdfconverter_srcmisclog4zlog4z.cpp
mov rdx, rdi
lea rcx, [0x1801297a0]
mov rax, qword [0x1801297a0]
call qword [rax + 0x40]
xor r13d, r13d
mov r12d, r13d
cmp dword [rbx + 0xa8], r13d
jl 0x18008577e
lea r15, [rbx + 0xc8]
cmp byte [r15 + 0x54], 0
je 0x180085764
mov eax, dword [0x180129780]
test al, 1
jne 0x180085420
or eax, 1
mov dword [0x180129780], eax
call fcn.1800821b0
lea rcx, [0x1800d90f0]
call fcn.1800bdcdc
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x1801297a0]
mov rax, qword [0x1801297a0]
call qword [rax + 0x38]
test al, al
je 0x180085764
mov eax, dword [0x180129780]
test al, 1
jne 0x180085464
or eax, 1
mov dword [0x180129780], eax
call fcn.1800821b0
lea rcx, [0x1800d90f0]
call fcn.1800bdcdc
nop
xor edx, edx
lea r8d, [rdx + 5]
lea rcx, [0x1801297a0]
mov rax, qword [0x1801297a0]
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 0x1800854d1
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 0x1800854ef
neg rdx
sub rsi, rdi
cmp rsi, 1
jle 0x1800854ef
mov byte [rdi], 0x2d
inc rdi
mov qword [rbp - 0x39], rdi
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.1800802d0
mov esi, 5
mov r14, qword [rbp - 0x41]
mov rax, r14
mov rdi, qword [rbp - 0x39]
sub rax, rdi
cmp rax, rsi
jae 0x18008551b
mov rsi, rax
test rax, rax
je 0x180085534
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 0x180085545
mov rdx, qword [rdx]
mov rsi, r14
sub rsi, rdi
cmp rax, rsi
cmovbe rsi, rax
test rsi, rsi
je 0x180085569
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 0x180085581
mov rsi, rax
test rax, rax
je 0x18008559a
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 0x1800855ac
mov rdx, qword [rdx]
mov rsi, r14
sub rsi, rdi
cmp rax, rsi
cmovbe rsi, rax
test rsi, rsi
je 0x1800855d0
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 0x1800855e8
mov rsi, rax
test rax, rax
je 0x180085601
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 0x180085613
mov rdx, qword [rdx]
mov rsi, r14
sub rsi, rdi
cmp rax, rsi
cmovbe rsi, rax
test rsi, rsi
je 0x180085637
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 0x18008564f
mov rsi, rax
test rax, rax
je 0x180085668
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 0x180085687
neg rdx
sub r14, rdi
cmp r14, 1
jle 0x180085687
mov byte [rdi], 0x2d
inc rdi
mov qword [rbp - 0x39], rdi
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.1800802d0
mov r14d, 9
mov rsi, qword [rbp - 0x41]
mov rax, rsi
mov rdi, qword [rbp - 0x39]
sub rax, rdi
cmp rax, r14
jae 0x1800856b4
mov r14, rax
test rax, rax
je 0x1800856c9
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 0x1800856ef
mov r14d, 4
cmp rsi, r14
jae 0x1800856e6
mov r14, rsi
test rsi, rsi
je 0x180085717
lea rdx, str.true
jmp 0x180085709
mov r14d, 5
cmp rsi, r14
jae 0x180085702
mov r14, rsi
test rsi, rsi
je 0x180085717
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 [0x180129780]
test al, 1
jne 0x180085743
or eax, 1
mov dword [0x180129780], eax
call fcn.1800821b0
lea rcx, [0x1800d90f0]
call fcn.1800bdcdc
nop
mov r9d, 0x78d
lea r8, str.e:zhanluekean_pdfconverter_srcmisclog4zlog4z.cpp
mov rdx, r13
lea rcx, [0x1801297a0]
mov rax, qword [0x1801297a0]
call qword [rax + 0x40]
inc r12d
add r15, 0xa8
cmp r12d, dword [rbx + 0xa8]
jle 0x1800853f0
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.180085100
test al, al
je 0x180085935
mov rdi, qword [rbp - 0x59]
mov eax, dword [rdi]
test eax, eax
js 0x180085920
cmp eax, dword [rbx + 0xa8]
jg 0x180085920
cdqe
imul rsi, rax, 0xa8
add rsi, rbx
cmp dword [rdi + 4], 0
je 0x180085861
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.18000b600
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.180083f50
nop
lea rcx, [rbp - 0x49]
call fcn.180005490
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x180085920
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsi + 0x140], r13
jmp 0x180085920
inc qword [rbx + 0x12d0]
cmp byte [rsi + 0x11c], 0
je 0x180085920
mov r8d, dword [rdi + 0xc]
cmp r8d, dword [rsi + 0x110]
jl 0x180085920
cmp byte [rsi + 0x114], 0
je 0x18008589b
lea rdx, [rdi + 0x24]
mov rcx, rbx
call fcn.180082ff0
cmp byte [rsi + 0x115], 0
je 0x18008590e
mov rdx, rdi
mov rcx, rbx
call fcn.180084ac0
test al, al
je 0x180085920
movsxd r14, dword [rdi + 0x20]
mov r9, qword [rsi + 0x140]
test r9, r9
je 0x1800858f8
test r14, r14
je 0x1800858f8
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 0x1800858f8
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x1800858f8
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 0x1800857b0
mov r14d, r13d
cmp dword [rbx + 0xa8], 0
jl 0x1800859a1
lea rsi, [rbp - 0x29]
lea rdi, [rbx + 0x140]
nop dword [rax]
movzx edx, byte [rdi - 0x24]
movzx eax, dl
test dl, dl
je 0x180085975
cmp dword [rsi], 0
jle 0x180085975
mov rcx, qword [rdi]
test rcx, rcx
je 0x180085972
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 0x18008598a
mov rcx, qword [rdi]
test rcx, rcx
je 0x18008598a
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 0x180085950
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x18], 0
jne 0x1800859bc
cmp qword [rbx + 0xf20], 0
je 0x1800859f0
cmp dword [rbx + 0x30], 0
je 0x1800857b0
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 0x1800857b0
lea rcx, [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0xa0]
jmp 0x1800857a2
mov esi, r13d
cmp dword [rbx + 0xa8], 0
jl 0x180085a59
mov r14, r13
lea rdi, [rbx + 0x140]
cmp byte [rdi - 0x24], 0
je 0x180085a45
mov byte [rdi - 0x24], 0
test r14, r14
js 0x180085a30
cmp esi, dword [rbx + 0xa8]
jg 0x180085a30
mov rcx, qword [rdi]
test rcx, rcx
je 0x180085a45
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi], r13
jmp 0x180085a45
mov r8d, 6
lea rdx, str.log4z:_closeLogger_can_not_close__invalide_logger_id___r_n
mov rcx, rbx
call fcn.180082ff0
inc esi
inc r14
add rdi, 0xa8
cmp esi, dword [rbx + 0xa8]
jle 0x180085a06
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800bd270
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