Function at 0x41d970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44124f
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x450398]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x450398]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
test byte [0x453d58], 1
mov edi, ecx
mov dword [esp + 0x2c], edi
mov byte [edi + 0x14], 1
jne 0x41d9f8
or dword [0x453d58], 1
mov ebx, 0x452c30
mov dword [esp + 0xc8], 0
call fcn.0041b190
push 0x4422a0
call fcn.00427096
add esp, 4
or esi, 0xffffffff
mov dword [esp + 0xc8], esi
jmp 0x41d9fb
or esi, 0xffffffff
mov eax, dword [0x452c40]
mov edx, dword [eax + 0x1c]
push 5
push 0
mov ecx, 0x452c40
call edx
test al, al
je 0x41db0e
test byte [0x453d58], 1
jne 0x41da4f
mov eax, 1
or dword [0x453d58], eax
mov ebx, 0x452c30
mov dword [esp + 0xc8], eax
call fcn.0041b190
push 0x4422a0
call fcn.00427096
add esp, 4
mov dword [esp + 0xc8], esi
mov eax, dword [0x452c40]
mov edx, dword [eax + 0x6c]
push 5
push 0
mov ecx, 0x452c40
call edx
mov ebx, eax
mov esi, dword [ebx + 0x20]
mov eax, 0xa000
sub eax, esi
lea esi, [esi + ebx + 0x24]
add eax, esi
sub eax, esi
mov dword [esp + 0x28], ebx
mov ecx, esi
mov dword [esp + 0x10], 0x33
cmp eax, 0x33
jae 0x41da91
mov dword [esp + 0x10], eax
test eax, eax
je 0x41daaa
mov eax, dword [esp + 0x10]
push eax
push str.log_thread_started_
push esi
call fcn.0042aac0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, esi
sub ecx, esi
add dword [ebx + 0x20], ecx
test byte [0x453d58], 1
jne 0x41daf0
or dword [0x453d58], 1
mov ebx, 0x452c30
mov dword [esp + 0xc8], 2
call fcn.0041b190
push 0x4422a0
call fcn.00427096
mov ebx, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0xc8], 0xffffffff
mov edx, dword [0x452c40]
mov eax, dword [edx + 0x20]
push 0x782
push str.log4z.cpp
push ebx
mov ecx, 0x452c40
call eax
or esi, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x8c], ebx
jl 0x41df7a
lea ecx, [edi + 0xa4]
mov dword [esp + 0x14], ecx
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x4c], 0
je 0x41df5b
test byte [0x453d58], 1
jne 0x41db77
or dword [0x453d58], 1
mov ebx, 0x452c30
mov dword [esp + 0xc8], 3
call fcn.0041b190
push 0x4422a0
call fcn.00427096
add esp, 4
mov dword [esp + 0xc8], esi
mov eax, dword [0x452c40]
mov edx, dword [eax + 0x1c]
push 5
push 0
mov ecx, 0x452c40
call edx
test al, al
je 0x41df5b
test byte [0x453d58], 1
jne 0x41dbcb
or dword [0x453d58], 1
mov ebx, 0x452c30
mov dword [esp + 0xc8], 4
call fcn.0041b190
push 0x4422a0
call fcn.00427096
add esp, 4
mov dword [esp + 0xc8], esi
mov eax, dword [0x452c40]
mov edx, dword [eax + 0x6c]
push 5
push 0
mov ecx, 0x452c40
call edx
mov edx, eax
mov ecx, dword [edx + 0x20]
lea esi, [ecx + edx + 0x24]
mov eax, 0xa000
sub eax, ecx
lea ebx, [esi + eax]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], 0xa
cmp eax, 0xa
jae 0x41dc1a
mov dword [esp + 0x10], eax
test eax, eax
je 0x41dc35
mov eax, dword [esp + 0x10]
push eax
push str.logger_id
push esi
call fcn.0042aac0
add esp, 0xc
add esi, dword [esp + 0x10]
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x18]
cdq
test edx, edx
jg 0x41dc5a
jl 0x41dc44
test eax, eax
jae 0x41dc5a
neg eax
adc edx, 0
sub ebx, esi
neg edx
cmp ebx, 1
jle 0x41dc5a
mov byte [esi], 0x2d
inc esi
mov dword [esp + 0x38], esi
push 0
push edx
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.004198d0
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], 5
cmp eax, 5
jae 0x41dc89
mov dword [esp + 0x10], eax
test eax, eax
je 0x41dca4
mov eax, dword [esp + 0x10]
push eax
push str._key
push esi
call fcn.0042aac0
add esp, 0xc
add esi, dword [esp + 0x10]
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 0x10
mov edx, dword [ecx - 4]
jb 0x41dcb5
mov eax, dword [ecx - 0x14]
jmp 0x41dcb8
lea eax, [ecx - 0x14]
mov dword [esp + 0x1c], eax
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], edx
cmp edx, eax
jbe 0x41dccc
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jbe 0x41dcf2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push esi
call fcn.0042aac0
mov ecx, dword [esp + 0x20]
add esp, 0xc
add esi, dword [esp + 0x10]
mov dword [esp + 0x38], esi
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], 6
cmp eax, 6
jae 0x41dd0b
mov dword [esp + 0x10], eax
test eax, eax
je 0x41dd2a
mov eax, dword [esp + 0x10]
push eax
push str._name
push esi
call fcn.0042aac0
mov ecx, dword [esp + 0x20]
add esp, 0xc
add esi, dword [esp + 0x10]
mov dword [esp + 0x38], esi
cmp dword [ecx + 0x1c], 0x10
mov edx, dword [ecx + 0x18]
jb 0x41dd38
mov eax, dword [ecx + 8]
jmp 0x41dd3b
lea eax, [ecx + 8]
mov dword [esp + 0x1c], eax
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], edx
cmp edx, eax
jbe 0x41dd4f
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jbe 0x41dd75
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push esi
call fcn.0042aac0
mov ecx, dword [esp + 0x20]
add esp, 0xc
add esi, dword [esp + 0x10]
mov dword [esp + 0x38], esi
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], 6
cmp eax, 6
jae 0x41dd8e
mov dword [esp + 0x10], eax
test eax, eax
je 0x41ddad
mov eax, dword [esp + 0x10]
push eax
push str._path
push esi
call fcn.0042aac0
mov ecx, dword [esp + 0x20]
add esp, 0xc
add esi, dword [esp + 0x10]
mov dword [esp + 0x38], esi
cmp dword [ecx + 0x38], 0x10
mov edx, dword [ecx + 0x34]
jb 0x41ddbb
mov eax, dword [ecx + 0x24]
jmp 0x41ddbe
lea eax, [ecx + 0x24]
mov dword [esp + 0x1c], eax
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], edx
cmp edx, eax
jbe 0x41ddd2
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jbe 0x41ddf8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push esi
call fcn.0042aac0
mov ecx, dword [esp + 0x20]
add esp, 0xc
add esi, dword [esp + 0x10]
mov dword [esp + 0x38], esi
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], 7
cmp eax, 7
jae 0x41de11
mov dword [esp + 0x10], eax
test eax, eax
je 0x41de30
mov eax, dword [esp + 0x10]
push eax
push str._level
push esi
call fcn.0042aac0
mov ecx, dword [esp + 0x20]
add esp, 0xc
add esi, dword [esp + 0x10]
mov dword [esp + 0x38], esi
mov eax, dword [ecx + 0x40]
cdq
test edx, edx
jg 0x41de54
jl 0x41de3e
test eax, eax
jae 0x41de54
neg eax
adc edx, 0
sub ebx, esi
neg edx
cmp ebx, 1
jle 0x41de54
mov byte [esi], 0x2d
inc esi
mov dword [esp + 0x38], esi
push 0
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004198d0
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], 9
cmp eax, 9
jae 0x41de83
mov dword [esp + 0x10], eax
test eax, eax
je 0x41de9a
mov edx, dword [esp + 0x10]
push edx
push str._display
push esi
call fcn.0042aac0
add esp, 0xc
add esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub ebx, esi
cmp byte [eax + 0x44], 0
je 0x41dec7
mov dword [esp + 0x1c], 4
cmp ebx, 4
jae 0x41debb
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x41def1
mov ebx, dword [esp + 0x1c]
push ebx
push str.true
jmp 0x41dee6
mov dword [esp + 0x1c], 5
cmp ebx, 5
jae 0x41dedc
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x41def1
mov ebx, dword [esp + 0x1c]
push ebx
push str.false
push esi
call fcn.0042aac0
add esp, 0xc
add esi, ebx
sub esi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
add dword [eax + 0x20], esi
test byte [0x453d58], 1
jne 0x41df39
or dword [0x453d58], 1
mov ebx, 0x452c30
mov dword [esp + 0xc8], 5
call fcn.0041b190
push 0x4422a0
call fcn.00427096
add esp, 4
mov dword [esp + 0xc8], 0xffffffff
mov ecx, dword [esp + 0x28]
mov edx, dword [0x452c40]
mov eax, dword [edx + 0x20]
push 0x78c
push str.log4z.cpp
push ecx
mov ecx, 0x452c40
call eax
or esi, 0xffffffff
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x98
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x8c]
jle 0x41db30
xor ebx, ebx
mov ecx, dword [edi + 0x1c]
push ebx
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x4c
lea edx, [esp + 0x6c]
push ebx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x70], ebx
call fcn.00429770
add esp, 0xc
push ebx
call fcn.0042890d
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
add esp, 4
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0041d840
test al, al
je 0x41dff2
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
test eax, eax
js 0x41dfd6
cmp eax, dword [edi + 0x8c]
jle 0x41e0b8
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x70]
lea ecx, [edi + 0x10]
push ebx
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.0041d840
test al, al
jne 0x41dfc0
xor ebx, ebx
cmp dword [edi + 0x8c], ebx
jl 0x41e055
lea esi, [edi + 0x118]
cmp byte [esi - 0x28], 0
je 0x41e02c
cmp dword [esp + ebx*4 + 0x64], 0
jle 0x41e026
mov eax, dword [esi]
test eax, eax
je 0x41e01e
push eax
call fcn.00428bbb
add esp, 4
mov dword [esp + ebx*4 + 0x64], 0
cmp byte [esi - 0x28], 0
jne 0x41e046
cmp dword [esi], 0
je 0x41e046
mov eax, dword [esi]
test eax, eax
je 0x41e046
push eax
call fcn.00427824
add esp, 4
mov dword [esi], 0
inc ebx
add esi, 0x98
cmp ebx, dword [edi + 0x8c]
jle 0x41e002
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [edi + 0x14], 0
jne 0x41e070
cmp dword [edi + 0xd9c], 0
je 0x41e253
cmp dword [edi + 0x20], 0
je 0x41dfb0
push 0
call fcn.0042890d
mov ecx, eax
mov eax, dword [edi + 0x20]
add esp, 4
sub ecx, dword [esp + 0x1c]
mov esi, edx
sbb esi, dword [esp + 0x20]
cdq
cmp esi, edx
jl 0x41dfb0
jg 0x41e0a6
cmp ecx, eax
jbe 0x41dfb0
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x50]
lea ecx, [edi + 0x10]
call eax
push 0
jmp 0x41dfa0
mov edx, eax
imul edx, edx, 0x98
cmp dword [ebx + 4], 0
lea esi, [edx + edi + 0x90]
mov dword [esp + 0x28], esi
je 0x41e171
mov eax, dword [ebx + 0x20]
lea ecx, [ebx + 0x24]
push eax
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
call fcn.00416f20
mov dword [esp + 0xc8], 6
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov eax, dword [ebx]
push edi
lea edi, [esp + 0x4c]
call fcn.0041c990
mov dword [esp + 0xc8], 0xffffffff
cmp dword [esp + 0x5c], 0x10
jb 0x41e137
mov eax, dword [esp + 0x48]
push eax
call fcn.00426798
add esp, 4
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x88]
test eax, eax
je 0x41e158
push eax
call fcn.00427824
add esp, 4
mov dword [esi + 0x88], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x70]
add ecx, 0x10
push ebx
call eax
mov edi, dword [esp + 0x2c]
jmp 0x41dfb0
add dword [edi + 0x1110], 1
adc dword [edi + 0x1114], 0
cmp byte [esi + 0x60], 0
je 0x41e242
mov edx, dword [ebx + 0xc]
cmp edx, dword [esi + 0x54]
jl 0x41e242
cmp byte [esi + 0x58], 0
je 0x41e1a4
lea ecx, [ebx + 0x24]
push edi
call fcn.0041bc90
cmp byte [esi + 0x59], 0
je 0x41e224
push edi
mov ecx, ebx
call fcn.0041d310
test al, al
jne 0x41e1c7
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x70]
lea ecx, [edi + 0x10]
push ebx
call eax
jmp 0x41dfb0
mov eax, dword [esi + 0x88]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x10], ecx
test eax, eax
je 0x41e211
test ecx, ecx
jbe 0x41e211
push eax
mov edx, ecx
push edx
lea eax, [ebx + 0x24]
push 1
push eax
call fcn.004279ef
add esp, 0x10
cmp eax, dword [esp + 0x10]
je 0x41e211
mov eax, dword [esi + 0x88]
test eax, eax
je 0x41e211
push eax
call fcn.00427824
add esp, 4
mov dword [esi + 0x88], 0
mov ecx, dword [ebx + 0x20]
add dword [esi + 0x84], ecx
mov eax, dword [ebx]
inc dword [esp + eax*4 + 0x64]
lea eax, [esp + eax*4 + 0x64]
add dword [edi + 0x1118], 1
adc dword [edi + 0x111c], 0
mov eax, dword [ebx + 0x20]
cdq
add dword [edi + 0x1120], eax
adc dword [edi + 0x1124], edx
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x70]
lea ecx, [edi + 0x10]
push ebx
call eax
jmp 0x41dfb0
cmp dword [edi + 0x8c], 0
mov dword [esp + 0x18], 0
jl 0x41e32f
lea ecx, [edi + 0x118]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
cmp byte [edx - 0x28], 0
je 0x41e312
mov eax, dword [esp + 0x18]
mov ecx, edx
mov byte [ecx - 0x28], 0
test eax, eax
js 0x41e2b8
cmp eax, dword [edi + 0x8c]
jg 0x41e2b8
cmp dword [ecx], 0
je 0x41e312
mov eax, edx
mov eax, dword [eax]
test eax, eax
je 0x41e312
push eax
call fcn.00427824
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], 0
jmp 0x41e312
lea ebx, [edi + 0xfe0]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x41e30b
lea edx, [esp + 0x30]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x41e30b
push 5
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push str.log4z:_closeLogger_can_not_close__invalide_logger_id___r_n
push 0x449ff4
call fcn.00428d88
mov eax, dword [esp + 0x40]
add esp, 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x98
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x8c]
jle 0x41e272
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004267a3
mov esp, ebp
pop ebp
ret