Function at 0x1006d460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1a8c
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100db00c]
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 [0x100ddb28]
mov byte [esi + 0x14], 1
test al, 1
jne 0x1006d4cb
or eax, 1
mov dword [0x100ddb28], eax
mov dword [ebp - 4], 0
call fcn.10069e60
push 0x100b8570
call fcn.100a2f94
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100dcb70]
mov ecx, 0x100dcb70
push 5
push 0
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x1006d5b3
mov eax, dword [0x100ddb28]
test al, 1
jne 0x1006d517
or eax, 1
mov dword [0x100ddb28], eax
mov dword [ebp - 4], 1
call fcn.10069e60
push 0x100b8570
call fcn.100a2f94
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100dcb70]
mov ecx, 0x100dcb70
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 0x1006d563
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 [0x100ddb28]
sub edx, ebx
add edx, ecx
mov dword [edi + 0x20], edx
test al, 1
jne 0x1006d59b
or eax, 1
mov dword [0x100ddb28], eax
mov dword [ebp - 4], 2
call fcn.10069e60
push 0x100b8570
call fcn.100a2f94
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100dcb70]
mov ecx, 0x100dcb70
push 0x783
push str.e:zhanluepiceditor_srcmisclog4zlog4z.cpp
push edi
call dword [eax + 0x20]
xor edi, edi
mov dword [ebp - 0x84], edi
cmp dword [esi + 0x78], edi
jl 0x1006d933
lea ebx, [esi + 0x94]
nop word [eax + eax]
cmp byte [ebx + 0x40], 0
je 0x1006d91d
mov eax, dword [0x100ddb28]
test al, 1
jne 0x1006d60b
or eax, 1
mov dword [0x100ddb28], eax
mov dword [ebp - 4], 3
call fcn.10069e60
push 0x100b8570
call fcn.100a2f94
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100dcb70]
mov ecx, 0x100dcb70
push 5
push 0
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x1006d91d
mov eax, dword [0x100ddb28]
test al, 1
jne 0x1006d657
or eax, 1
mov dword [0x100ddb28], eax
mov dword [ebp - 4], 4
call fcn.10069e60
push 0x100b8570
call fcn.100a2f94
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100dcb70]
mov ecx, 0x100dcb70
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 0x1006d698
mov edi, edx
test edx, edx
je 0x1006d6aa
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.10067ab0
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 0x1006d6f2
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 0x1006d702
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 0x1006d72d
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 0x1006d75f
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 0x1006d770
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 0x1006d79b
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 0x1006d7d4
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 0x1006d7e5
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 0x1006d810
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 0x1006d838
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.10067ab0
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 0x1006d875
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 0x1006d899
mov ecx, 4
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 0x80], ecx
test ecx, ecx
je 0x1006d8bf
push ecx
push str.true
jmp 0x1006d8b0
mov ecx, 5
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 0x80], ecx
test ecx, ecx
je 0x1006d8bf
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 [0x100ddb28]
test al, 1
jne 0x1006d8ff
or eax, 1
mov dword [0x100ddb28], eax
mov dword [ebp - 4], 5
call fcn.10069e60
push 0x100b8570
call fcn.100a2f94
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100dcb70]
mov ecx, 0x100dcb70
push 0x78d
push str.e:zhanluepiceditor_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 0x1006d5d0
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.1006d2f0
test al, al
je 0x1006d9b3
mov edi, dword [ebp - 0x84]
mov eax, dword [edi]
test eax, eax
js 0x1006d997
cmp eax, dword [esi + 0x78]
jle 0x1006da7b
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.1006d2f0
test al, al
jne 0x1006d982
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jl 0x1006da11
lea edi, [esi + 0xf8]
mov cl, byte [edi - 0x24]
mov al, cl
test cl, cl
je 0x1006d9eb
cmp dword [ebp + ebx*4 - 0x60], 0
jle 0x1006d9eb
mov edx, dword [edi]
test edx, edx
je 0x1006d9e3
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 0x1006da05
mov eax, dword [edi]
test eax, eax
je 0x1006da05
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 0x1006d9c0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x14], 0
jne 0x1006da2c
cmp dword [esi + 0xc4c], 0
je 0x1006dc49
cmp dword [esi + 0x20], 0
je 0x1006d970
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 0x1006d970
jg 0x1006da66
cmp edi, eax
jbe 0x1006d970
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
call dword [eax + 0x50]
push 0
call ebx
add esp, 4
jmp 0x1006d964
imul ebx, eax, 0x88
add ebx, esi
cmp dword [edi + 4], 0
je 0x1006db50
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.100073e0
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.1006bd70
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x1006db11
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006db07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006dc43
push edx
push ecx
call fcn.100a272d
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 0x1006db41
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 0x1006d970
add dword [esi + 0xfb0], 1
adc dword [esi + 0xfb4], 0
cmp byte [ebx + 0xd4], 0
je 0x1006dc34
mov eax, dword [edi + 0xc]
cmp eax, dword [ebx + 0xc8]
jl 0x1006dc34
cmp byte [ebx + 0xcc], 0
je 0x1006db8f
push eax
lea eax, [edi + 0x24]
mov ecx, esi
push eax
call fcn.1006ae90
cmp byte [ebx + 0xcd], 0
je 0x1006dc16
push edi
mov ecx, esi
call fcn.1006cac0
test al, al
jne 0x1006dbb3
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push edi
call dword [eax + 0x70]
jmp 0x1006d970
mov ecx, dword [ebx + 0xf8]
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x8c], eax
test ecx, ecx
je 0x1006dc01
test eax, eax
je 0x1006dc01
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 0x1006dc01
mov eax, dword [ebx + 0xf8]
test eax, eax
je 0x1006dc01
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 0x1006d970
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 0x1006dc9b
lea edi, [esi + 0xf8]
cmp byte [edi - 0x24], 0
je 0x1006dc8f
mov byte [edi - 0x24], 0
test ebx, ebx
js 0x1006dc81
cmp ebx, dword [esi + 0x78]
jg 0x1006dc81
mov eax, dword [edi]
test eax, eax
je 0x1006dc8f
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi], 0
jmp 0x1006dc8f
push 6
push str.log4z:_closeLogger_can_not_close__invalide_logger_id___r_n
mov ecx, esi
call fcn.1006ae90
inc ebx
add edi, 0x88
cmp ebx, dword [esi + 0x78]
jle 0x1006dc56
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.100a26ec
mov esp, ebp
pop ebp
ret