Function at 0x413cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x4247d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x430038]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov byte [esi + 0x14], 1
call fcn.004143a0
push 5
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 0x1c]
call eax
test al, al
je 0x413d75
call fcn.004143a0
push 5
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x6c]
mov edi, eax
mov ecx, 0x2000
mov ebx, 0x47
sub ecx, dword [edi + 0x20]
lea edx, [edi + 0x24]
add edx, dword [edi + 0x20]
cmp ecx, ebx
mov dword [ebp - 0x10], edx
mov eax, edx
cmovb ebx, ecx
test ebx, ebx
je 0x413d54
push ebx
push str.___________________log4z_thread_started________________________________
push edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebx + edx]
mov ecx, dword [edi + 0x20]
sub eax, edx
add eax, ecx
mov dword [edi + 0x20], eax
call fcn.004143a0
push 0x783
push str.e:zhanluepdfconverter_srcmisclog4zlog4z.cpp
push edi
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x20]
xor edi, edi
mov dword [ebp - 0x10], edi
cmp dword [esi + 0x78], edi
jl 0x41405d
lea ebx, [esi + 0x80]
mov dword [ebp], ebx
nop dword [eax]
cmp byte [ebx + 0x54], 0
je 0x414047
call fcn.004143a0
push 5
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 0x1c]
call eax
test al, al
je 0x414047
call fcn.004143a0
push 5
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x6c]
mov edx, 0x2000
mov dword [ebp - 0x1c], eax
mov edi, 0xa
mov ecx, dword [eax + 0x20]
sub edx, ecx
add ecx, 0x24
add eax, ecx
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x20], eax
lea ecx, [eax + edx]
mov dword [ebp + 0x1c], ecx
cmp edx, edi
jae 0x413df1
mov edi, edx
test edx, edx
je 0x413e03
push edi
push str.logger_id
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [ebp + 0x20], edi
push dword [ebp - 0x10]
lea ecx, [ebp + 0x18]
call fcn.0040e8d0
mov edi, eax
mov ecx, 5
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
mov dword [ebp + 4], eax
sub eax, ebx
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x413e4a
push ecx
push str._key
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 8], eax
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
mov dword [ebp + 4], eax
mov ecx, dword [ebp]
call fcn.004079f0
mov edx, dword [eax + 0x10]
call fcn.00406e50
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 4]
mov ecx, eax
sub ecx, ebx
cmp edx, ecx
cmovbe ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x413e8c
push ecx
push dword [ebp - 0x18]
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [edi + 8], eax
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
mov dword [ebp + 4], eax
sub eax, ebx
mov ecx, 6
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x413ebd
push ecx
push str._name
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [edi + 8], eax
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
mov dword [ebp + 4], eax
mov ecx, dword [ebp]
add ecx, 0x18
call fcn.004079f0
mov edx, dword [eax + 0x10]
call fcn.00406e50
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
mov ecx, eax
sub ecx, ebx
cmp edx, ecx
cmovbe ecx, edx
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x413f02
push ecx
push dword [ebp + 8]
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 8], eax
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
mov dword [ebp + 4], eax
sub eax, ebx
mov ecx, 6
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x413f33
push ecx
push str._path
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [edi + 8], eax
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
mov dword [ebp + 4], eax
mov ecx, dword [ebp]
add ecx, 0x30
call fcn.004079f0
mov edx, dword [eax + 0x10]
call fcn.00406e50
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
mov ecx, eax
sub ecx, ebx
cmp edx, ecx
cmovbe ecx, edx
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x413f75
push ecx
push dword [ebp + 8]
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 8], eax
mov ebx, dword [edi + 8]
mov eax, dword [edi + 4]
sub eax, ebx
mov ecx, 7
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x413f9d
push ecx
push str._level
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [edi + 8], eax
mov ebx, dword [ebp]
mov ecx, edi
push dword [ebx + 0x48]
call fcn.0040e8d0
mov edi, eax
mov eax, 9
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
sub ecx, edx
cmp ecx, eax
cmovb eax, ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x413fdd
push eax
push str._display
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [edi + 8], eax
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
sub eax, edx
cmp byte [ebx + 0x4c], 0
je 0x413ffe
mov ebx, 4
cmp eax, ebx
cmovb ebx, eax
test ebx, ebx
je 0x41401e
push ebx
push str.true
jmp 0x414012
mov ebx, 5
cmp eax, ebx
cmovb ebx, eax
test ebx, ebx
je 0x41401e
push ebx
push str.false
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [edi + 8], ebx
mov eax, dword [ebp + 0x20]
mov edi, dword [ebp - 0x1c]
sub eax, dword [ebp + 0x18]
add dword [edi + 0x20], eax
call fcn.004143a0
push 0x78d
push str.e:zhanluepdfconverter_srcmisclog4zlog4z.cpp
push edi
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, dword [ebp]
mov edi, dword [ebp - 0x10]
inc edi
add ebx, 0x88
mov dword [ebp - 0x10], edi
mov dword [ebp], ebx
cmp edi, dword [esi + 0x78]
jle 0x413d90
push 0
push 1
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x50
lea eax, [ebp + 0x24]
mov dword [ebp], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push 0
call ebx
add esp, 0x10
mov dword [ebp + 4], edx
mov dword [ebp - 0x10], eax
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.00413b40
test al, al
je 0x4140cb
mov ebx, dword [ebp]
mov eax, dword [ebx]
test eax, eax
js 0x4140b2
cmp eax, dword [esi + 0x78]
jle 0x414190
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push ebx
call dword [eax + 0x70]
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.00413b40
test al, al
jne 0x4140a0
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jl 0x414129
lea edi, [esi + 0xf8]
mov cl, byte [edi - 0x24]
mov al, cl
test cl, cl
je 0x414103
cmp dword [ebp + ebx*4 + 0x24], 0
jle 0x414103
mov edx, dword [edi]
test edx, edx
je 0x4140fb
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov al, byte [edi - 0x24]
add esp, 4
mov dword [ebp + ebx*4 + 0x24], 0
test al, al
jne 0x41411d
mov eax, dword [edi]
test eax, eax
je 0x41411d
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi], 0
inc ebx
add edi, 0x88
cmp ebx, dword [esi + 0x78]
jle 0x4140d8
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x14], 0
jne 0x414144
cmp dword [esi + 0xc4c], 0
je 0x414327
cmp dword [esi + 0x20], 0
je 0x414091
mov ebx, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push 0
call ebx
mov edi, eax
add esp, 4
sub edi, dword [ebp - 0x10]
mov ecx, edx
mov eax, dword [esi + 0x20]
sbb ecx, dword [ebp + 4]
cdq
cmp ecx, edx
jl 0x414091
jg 0x41417b
cmp edi, eax
jbe 0x414091
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
call dword [eax + 0x50]
push 0
call ebx
add esp, 4
jmp 0x41408b
imul edi, eax, 0x88
add edi, esi
cmp dword [ebx + 4], 0
mov dword [ebp - 0x1c], edi
je 0x41423a
mov edi, dword [ebx + 0x20]
lea ecx, [ebp + 0xc]
add ebx, 0x24
call fcn.00407a70
call fcn.004079f0
lea edx, [ebp - 0x11]
mov byte [ebp - 0x11], 0
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
call fcn.00401f40
push edi
push ebx
lea ecx, [ebp + 0xc]
call fcn.00407db0
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
mov edi, dword [ebp]
mov ecx, esi
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call fcn.00412b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406ef0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0xf8]
test eax, eax
je 0x41422b
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebx + 0xf8], 0
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push edi
call dword [eax + 0x70]
jmp 0x414091
add dword [esi + 0xfb0], 1
adc dword [esi + 0xfb4], 0
cmp byte [edi + 0xd4], 0
je 0x414318
mov eax, dword [ebx + 0xc]
cmp eax, dword [edi + 0xc8]
jl 0x414318
cmp byte [edi + 0xcc], 0
je 0x414279
push eax
lea eax, [ebx + 0x24]
mov ecx, esi
push eax
call fcn.00411db0
cmp byte [edi + 0xcd], 0
je 0x4142fa
push ebx
mov ecx, esi
call fcn.004134a0
test al, al
jne 0x41429d
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push ebx
call dword [eax + 0x70]
jmp 0x414091
mov ecx, dword [edi + 0xf8]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x4142e5
test eax, eax
je 0x4142e5
push ecx
push eax
lea eax, [ebx + 0x24]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp - 0x1c]
je 0x4142e5
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4142e5
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0xf8], 0
mov eax, dword [edi + 0xf4]
add eax, dword [ebx + 0x20]
mov dword [edi + 0xf4], eax
mov eax, dword [ebx]
inc dword [ebp + eax*4 + 0x24]
add dword [esi + 0xfb8], 1
adc dword [esi + 0xfbc], 0
mov eax, dword [ebx + 0x20]
cdq
add dword [esi + 0xfc0], eax
adc dword [esi + 0xfc4], edx
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push ebx
call dword [eax + 0x70]
jmp 0x414091
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jl 0x414379
lea edi, [esi + 0xf8]
cmp byte [edi - 0x24], 0
je 0x41436d
mov byte [edi - 0x24], 0
test ebx, ebx
js 0x41435f
cmp ebx, dword [esi + 0x78]
jg 0x41435f
mov eax, dword [edi]
test eax, eax
je 0x41436d
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi], 0
jmp 0x41436d
push 6
push str.log4z:_closeLogger_can_not_close__invalide_logger_id___r_n
mov ecx, esi
call fcn.00411db0
inc ebx
add edi, 0x88
cmp ebx, dword [esi + 0x78]
jle 0x414334
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.004210a4
lea esp, [ebp + 0x78]
pop ebp
ret