Function at 0x1009cec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018c5dc
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x101e40b0]
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 [0x101ed118]
mov byte [esi + 0x14], 1
test al, 1
jne 0x1009cf2b
or eax, 1
mov dword [0x101ed118], eax
mov dword [ebp - 4], 0
call fcn.100997e0
push 0x10199940
call fcn.1017841d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x101ec160]
mov ecx, 0x101ec160
push 5
push 0
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x1009d013
mov eax, dword [0x101ed118]
test al, 1
jne 0x1009cf77
or eax, 1
mov dword [0x101ed118], eax
mov dword [ebp - 4], 1
call fcn.100997e0
push 0x10199940
call fcn.1017841d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x101ec160]
mov ecx, 0x101ec160
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 0x1009cfc3
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 [0x101ed118]
sub edx, ebx
add edx, ecx
mov dword [edi + 0x20], edx
test al, 1
jne 0x1009cffb
or eax, 1
mov dword [0x101ed118], eax
mov dword [ebp - 4], 2
call fcn.100997e0
push 0x10199940
call fcn.1017841d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x101ec160]
mov ecx, 0x101ec160
push 0x783
push str.e:zhanlue_rcimage_srcmisclog4zlog4z.cpp
push edi
call dword [eax + 0x20]
xor edi, edi
mov dword [ebp - 0x84], edi
cmp dword [esi + 0x78], edi
jl 0x1009d393
lea ebx, [esi + 0x94]
nop word [eax + eax]
cmp byte [ebx + 0x40], 0
je 0x1009d37d
mov eax, dword [0x101ed118]
test al, 1
jne 0x1009d06b
or eax, 1
mov dword [0x101ed118], eax
mov dword [ebp - 4], 3
call fcn.100997e0
push 0x10199940
call fcn.1017841d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x101ec160]
mov ecx, 0x101ec160
push 5
push 0
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x1009d37d
mov eax, dword [0x101ed118]
test al, 1
jne 0x1009d0b7
or eax, 1
mov dword [0x101ed118], eax
mov dword [ebp - 4], 4
call fcn.100997e0
push 0x10199940
call fcn.1017841d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x101ec160]
mov ecx, 0x101ec160
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 0x1009d0f8
mov edi, edx
test edx, edx
je 0x1009d10a
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.10097300
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 0x1009d152
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 0x1009d162
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 0x1009d18d
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 0x1009d1bf
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 0x1009d1d0
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 0x1009d1fb
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 0x1009d234
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 0x1009d245
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 0x1009d270
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 0x1009d298
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.10097300
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 0x1009d2d5
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 0x1009d2f9
mov ecx, 4
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 0x80], ecx
test ecx, ecx
je 0x1009d31f
push ecx
push str.true
jmp 0x1009d310
mov ecx, 5
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 0x80], ecx
test ecx, ecx
je 0x1009d31f
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 [0x101ed118]
test al, 1
jne 0x1009d35f
or eax, 1
mov dword [0x101ed118], eax
mov dword [ebp - 4], 5
call fcn.100997e0
push 0x10199940
call fcn.1017841d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x101ec160]
mov ecx, 0x101ec160
push 0x78d
push str.e:zhanlue_rcimage_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 0x1009d030
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.1009cd50
test al, al
je 0x1009d413
mov edi, dword [ebp - 0x84]
mov eax, dword [edi]
test eax, eax
js 0x1009d3f7
cmp eax, dword [esi + 0x78]
jle 0x1009d4db
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.1009cd50
test al, al
jne 0x1009d3e2
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jl 0x1009d471
lea edi, [esi + 0xf8]
mov cl, byte [edi - 0x24]
mov al, cl
test cl, cl
je 0x1009d44b
cmp dword [ebp + ebx*4 - 0x60], 0
jle 0x1009d44b
mov edx, dword [edi]
test edx, edx
je 0x1009d443
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 0x1009d465
mov eax, dword [edi]
test eax, eax
je 0x1009d465
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 0x1009d420
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x14], 0
jne 0x1009d48c
cmp dword [esi + 0xc4c], 0
je 0x1009d6a9
cmp dword [esi + 0x20], 0
je 0x1009d3d0
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 0x1009d3d0
jg 0x1009d4c6
cmp edi, eax
jbe 0x1009d3d0
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
call dword [eax + 0x50]
push 0
call ebx
add esp, 4
jmp 0x1009d3c4
imul ebx, eax, 0x88
add ebx, esi
cmp dword [edi + 4], 0
je 0x1009d5b0
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.100071a0
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.1009b690
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x1009d571
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009d567
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009d6a3
push edx
push ecx
call fcn.10177d58
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 0x1009d5a1
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 0x1009d3d0
add dword [esi + 0xfb0], 1
adc dword [esi + 0xfb4], 0
cmp byte [ebx + 0xd4], 0
je 0x1009d694
mov eax, dword [edi + 0xc]
cmp eax, dword [ebx + 0xc8]
jl 0x1009d694
cmp byte [ebx + 0xcc], 0
je 0x1009d5ef
push eax
lea eax, [edi + 0x24]
mov ecx, esi
push eax
call fcn.1009a7f0
cmp byte [ebx + 0xcd], 0
je 0x1009d676
push edi
mov ecx, esi
call fcn.1009c420
test al, al
jne 0x1009d613
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
push edi
call dword [eax + 0x70]
jmp 0x1009d3d0
mov ecx, dword [ebx + 0xf8]
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x8c], eax
test ecx, ecx
je 0x1009d661
test eax, eax
je 0x1009d661
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 0x1009d661
mov eax, dword [ebx + 0xf8]
test eax, eax
je 0x1009d661
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 0x1009d3d0
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 0x1009d6fb
lea edi, [esi + 0xf8]
cmp byte [edi - 0x24], 0
je 0x1009d6ef
mov byte [edi - 0x24], 0
test ebx, ebx
js 0x1009d6e1
cmp ebx, dword [esi + 0x78]
jg 0x1009d6e1
mov eax, dword [edi]
test eax, eax
je 0x1009d6ef
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi], 0
jmp 0x1009d6ef
push 6
push str.log4z:_closeLogger_can_not_close__invalide_logger_id___r_n
mov ecx, esi
call fcn.1009a7f0
inc ebx
add edi, 0x88
cmp ebx, dword [esi + 0x78]
jle 0x1009d6b6
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.10177d47
mov esp, ebp
pop ebp
ret