Function at 0x1006a350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100adb3c
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100d703c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x88], esi
mov eax, dword [0x100d9bc0]
mov byte [esi + 0x14], 1
test al, 1
jne 0x1006a3bb
or eax, 1
mov dword [0x100d9bc0], eax
mov dword [ebp - 4], 0
call fcn.10066dc0
push 0x100b4070
call fcn.1009f314
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100d8c08]
mov ecx, 0x100d8c08
push 5
push 0
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x1006a4a3
mov eax, dword [0x100d9bc0]
test al, 1
jne 0x1006a407
or eax, 1
mov dword [0x100d9bc0], eax
mov dword [ebp - 4], 1
call fcn.10066dc0
push 0x100b4070
call fcn.1009f314
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100d8c08]
mov ecx, 0x100d8c08
push 5
push 0
call dword [eax + 0x6c]
mov edi, eax
mov ecx, 0x2000
mov eax, 0x47
mov edx, dword [edi + 0x20]
lea ebx, [edi + 0x24]
sub ecx, edx
add ebx, edx
cmp ecx, eax
cmovb eax, ecx
mov ecx, ebx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x1006a453
push eax
push str.___________________log4z_thread_started________________________________
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x7c]
add esp, 0xc
mov edx, dword [edi + 0x20]
add ecx, ebx
mov eax, dword [0x100d9bc0]
sub edx, ebx
add edx, ecx
mov dword [edi + 0x20], edx
test al, 1
jne 0x1006a48b
or eax, 1
mov dword [0x100d9bc0], eax
mov dword [ebp - 4], 2
call fcn.10066dc0
push 0x100b4070
call fcn.1009f314
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100d8c08]
mov ecx, 0x100d8c08
push 0x783
push str.e:zhanluehaocompress_srcmisclog4zlog4z.cpp
push edi
call dword [eax + 0x20]
xor edi, edi
mov dword [ebp - 0x84], edi
cmp dword [esi + 0x78], edi
jl 0x1006a823
lea ebx, [esi + 0x94]
nop word [eax + eax]
cmp byte [ebx + 0x40], 0
je 0x1006a80d
mov eax, dword [0x100d9bc0]
test al, 1
jne 0x1006a4fb
or eax, 1
mov dword [0x100d9bc0], eax
mov dword [ebp - 4], 3
call fcn.10066dc0
push 0x100b4070
call fcn.1009f314
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100d8c08]
mov ecx, 0x100d8c08
push 5
push 0
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x1006a80d
mov eax, dword [0x100d9bc0]
test al, 1
jne 0x1006a547
or eax, 1
mov dword [0x100d9bc0], eax
mov dword [ebp - 4], 4
call fcn.10066dc0
push 0x100b4070
call fcn.1009f314
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100d8c08]
mov ecx, 0x100d8c08
push 5
push 0
call dword [eax + 0x6c]
mov edx, 0x2000
mov dword [ebp - 0x8c], eax
mov edi, 0xa
mov ecx, dword [eax + 0x20]
sub edx, ecx
add ecx, 0x24
add eax, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], eax
lea ecx, [eax + edx]
mov dword [ebp - 0x68], ecx
cmp edx, edi
jae 0x1006a588
mov edi, edx
test edx, edx
je 0x1006a59a
push edi
push str.logger_id
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [ebp - 0x64], edi
push dword [ebp - 0x84]
lea ecx, [ebp - 0x6c]
call fcn.100649a0
mov edi, eax
mov esi, 5
mov edx, dword [edi + 4]
mov eax, edx
mov ecx, dword [edi + 8]
sub eax, ecx
cmp eax, 5
cmovb esi, eax
mov eax, esi
mov dword [ebp - 0x7c], esi
test eax, eax
je 0x1006a5e2
push eax
push str._key
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [edi + 4]
mov eax, esi
add esp, 0xc
add dword [edi + 8], eax
mov ecx, dword [edi + 8]
cmp dword [ebx], 0x10
lea eax, [ebx - 0x14]
mov dword [ebp - 0x7c], eax
jb 0x1006a5f2
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, edx
sub eax, ecx
cmp dword [ebx - 4], eax
cmovbe eax, dword [ebx - 4]
mov dword [ebp - 0x80], eax
test eax, eax
je 0x1006a61d
push eax
push dword [ebp - 0x7c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
add esp, 0xc
add dword [edi + 8], eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
mov eax, edx
mov esi, 6
sub eax, ecx
cmp eax, 6
cmovb esi, eax
mov eax, esi
mov dword [ebp - 0x7c], esi
test eax, eax
je 0x1006a64f
push eax
push str._name
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [edi + 4]
mov eax, esi
add esp, 0xc
add dword [edi + 8], eax
mov ecx, dword [edi + 8]
cmp dword [ebx + 0x18], 0x10
lea eax, [ebx + 4]
mov dword [ebp - 0x7c], eax
jb 0x1006a660
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, edx
sub eax, ecx
cmp dword [ebx + 0x14], eax
cmovbe eax, dword [ebx + 0x14]
mov dword [ebp - 0x80], eax
test eax, eax
je 0x1006a68b
push eax
push dword [ebp - 0x7c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
add esp, 0xc
add dword [edi + 8], eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
mov eax, edx
mov esi, 6
sub eax, ecx
cmp eax, 6
cmovb esi, eax
mov eax, esi
mov dword [ebp - 0x7c], esi
mov esi, dword [ebp - 0x88]
test eax, eax
je 0x1006a6c4
push eax
push str._path
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x7c]
add esp, 0xc
add dword [edi + 8], eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
cmp dword [ebx + 0x30], 0x10
lea eax, [ebx + 0x1c]
mov dword [ebp - 0x7c], eax
jb 0x1006a6d5
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, edx
sub eax, ecx
cmp dword [ebx + 0x2c], eax
cmovbe eax, dword [ebx + 0x2c]
mov dword [ebp - 0x80], eax
test eax, eax
je 0x1006a700
push eax
push dword [ebp - 0x7c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
add esp, 0xc
add dword [edi + 8], eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
sub edx, ecx
mov eax, 7
cmp edx, eax
cmovb eax, edx
mov dword [ebp - 0x80], eax
test eax, eax
je 0x1006a728
push eax
push str._level
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
add esp, 0xc
add dword [edi + 8], eax
push dword [ebx + 0x34]
mov ecx, edi
call fcn.100649a0
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 - 0x80], eax
test eax, eax
je 0x1006a765
push eax
push str._display
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
add esp, 0xc
add dword [edi + 8], eax
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
sub eax, edx
cmp byte [ebx + 0x38], 0
je 0x1006a789
mov ecx, 4
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 0x80], ecx
test ecx, ecx
je 0x1006a7af
push ecx
push str.true
jmp 0x1006a7a0
mov ecx, 5
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 0x80], ecx
test ecx, ecx
je 0x1006a7af
push ecx
push str.false
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
add esp, 0xc
add dword [edi + 8], eax
mov eax, dword [ebp - 0x64]
mov edi, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x6c]
add dword [edi + 0x20], eax
mov eax, dword [0x100d9bc0]
test al, 1
jne 0x1006a7ef
or eax, 1
mov dword [0x100d9bc0], eax
mov dword [ebp - 4], 5
call fcn.10066dc0
push 0x100b4070
call fcn.1009f314
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100d8c08]
mov ecx, 0x100d8c08
push 0x78d
push str.e:zhanluehaocompress_srcmisclog4zlog4z.cpp
push edi
call dword [eax + 0x20]
mov edi, dword [ebp - 0x84]
inc edi
add ebx, 0x88
mov dword [ebp - 0x84], edi
cmp edi, dword [esi + 0x78]
jle 0x1006a4c0
push 0
push 1
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x50
lea eax, [ebp - 0x60]
mov dword [ebp - 0x84], 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 - 0x88], edx
mov dword [ebp - 0x7c], eax
nop dword [eax]
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.1006a1e0
test al, al
je 0x1006a8a3
mov edi, dword [ebp - 0x84]
mov eax, dword [edi]
test eax, eax
js 0x1006a887
cmp eax, dword [esi + 0x78]
jle 0x1006a96b
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push edi
call dword [eax + 0x70]
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.1006a1e0
test al, al
jne 0x1006a872
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jl 0x1006a901
lea edi, [esi + 0xf8]
mov cl, byte [edi - 0x24]
mov al, cl
test cl, cl
je 0x1006a8db
cmp dword [ebp + ebx*4 - 0x60], 0
jle 0x1006a8db
mov edx, dword [edi]
test edx, edx
je 0x1006a8d3
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 - 0x60], 0
test al, al
jne 0x1006a8f5
mov eax, dword [edi]
test eax, eax
je 0x1006a8f5
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 0x1006a8b0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x14], 0
jne 0x1006a91c
cmp dword [esi + 0xc4c], 0
je 0x1006ab39
cmp dword [esi + 0x20], 0
je 0x1006a860
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 - 0x7c]
mov ecx, edx
mov eax, dword [esi + 0x20]
sbb ecx, dword [ebp - 0x88]
cdq
cmp ecx, edx
jl 0x1006a860
jg 0x1006a956
cmp edi, eax
jbe 0x1006a860
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
call dword [eax + 0x50]
push 0
call ebx
add esp, 4
jmp 0x1006a854
imul ebx, eax, 0x88
add ebx, esi
cmp dword [edi + 4], 0
je 0x1006aa40
push dword [edi + 0x20]
lea eax, [edi + 0x24]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x78]
push eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.10007600
mov dword [ebp - 4], 6
lea eax, [ebp - 0x78]
push eax
push dword [edi + 8]
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.10068c60
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x1006aa01
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a9f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006ab33
push edx
push ecx
call fcn.1009eaad
add esp, 8
mov eax, dword [ebx + 0xf8]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
test eax, eax
je 0x1006aa31
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 0x1006a860
add dword [esi + 0xfb0], 1
adc dword [esi + 0xfb4], 0
cmp byte [ebx + 0xd4], 0
je 0x1006ab24
mov eax, dword [edi + 0xc]
cmp eax, dword [ebx + 0xc8]
jl 0x1006ab24
cmp byte [ebx + 0xcc], 0
je 0x1006aa7f
push eax
lea eax, [edi + 0x24]
mov ecx, esi
push eax
call fcn.10067dd0
cmp byte [ebx + 0xcd], 0
je 0x1006ab06
push edi
mov ecx, esi
call fcn.100699b0
test al, al
jne 0x1006aaa3
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push edi
call dword [eax + 0x70]
jmp 0x1006a860
mov ecx, dword [ebx + 0xf8]
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x8c], eax
test ecx, ecx
je 0x1006aaf1
test eax, eax
je 0x1006aaf1
push ecx
push eax
lea eax, [edi + 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 - 0x8c]
je 0x1006aaf1
mov eax, dword [ebx + 0xf8]
test eax, eax
je 0x1006aaf1
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 [ebx + 0xf4]
add eax, dword [edi + 0x20]
mov dword [ebx + 0xf4], eax
mov eax, dword [edi]
inc dword [ebp + eax*4 - 0x60]
add dword [esi + 0xfb8], 1
adc dword [esi + 0xfbc], 0
mov eax, dword [edi + 0x20]
cdq
add dword [esi + 0xfc0], eax
adc dword [esi + 0xfc4], edx
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push edi
call dword [eax + 0x70]
jmp 0x1006a860
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jl 0x1006ab8b
lea edi, [esi + 0xf8]
cmp byte [edi - 0x24], 0
je 0x1006ab7f
mov byte [edi - 0x24], 0
test ebx, ebx
js 0x1006ab71
cmp ebx, dword [esi + 0x78]
jg 0x1006ab71
mov eax, dword [edi]
test eax, eax
je 0x1006ab7f
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi], 0
jmp 0x1006ab7f
push 6
push str.log4z:_closeLogger_can_not_close__invalide_logger_id___r_n
mov ecx, esi
call fcn.10067dd0
inc ebx
add edi, 0x88
cmp ebx, dword [esi + 0x78]
jle 0x1006ab46
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009ea6c
mov esp, ebp
pop ebp
ret