Function at 0x41b450
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x447e10
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4630c8]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630c8]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
mov edi, ecx
cmp esi, dword [edi + 4]
jg 0x41b7d5
push 0x464f30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x3c]
push eax
call fcn.00435235
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041ace0
cmp esi, 8
mov dword [esp + 0x5c], 0
ja case.default.0x41b4cc
jmp dword [esi*4 + 0x41b7f8]
push str.__Always_
lea ecx, [esp + 0x18]
call fcn.0041aca0
jmp 0x41b62d
push str.__Fatal_
lea ecx, [esp + 0x18]
call fcn.0041aca0
jmp 0x41b62d
push str.__Warning_
lea ecx, [esp + 0x18]
call fcn.0041aca0
jmp 0x41b62d
push str.__Message_
lea ecx, [esp + 0x18]
call fcn.0041aca0
jmp 0x41b62d
push str.__Info_
lea ecx, [esp + 0x18]
call fcn.0041aca0
jmp 0x41b62d
push str.__Trace_
lea ecx, [esp + 0x18]
call fcn.0041aca0
jmp 0x41b62d
push str.__Stats_
lea ecx, [esp + 0x18]
call fcn.0041aca0
jmp 0x41b62d
push str.__Debug_
lea ecx, [esp + 0x18]
call fcn.0041aca0
jmp 0x41b62d
push str.__VDebug_
lea ecx, [esp + 0x18]
call fcn.0041aca0
jmp 0x41b62d
push 0x44ccc8
lea ecx, [esp + 0x28]
call fcn.004010e0
push str.__CL_
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 1
call fcn.004010e0
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
mov byte [esp + 0x64], 2
call fcn.00401270
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
mov bl, 3
mov ecx, eax
mov byte [esp + 0x64], bl
call fcn.004011f0
lea esi, [eax + 4]
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
mov byte [esp + 0x5c], 4
jle 0x41b5ea
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x18]
call fcn.0041aca0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], bl
call fcn.0040ec70
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 2
call fcn.0040ec70
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 1
call fcn.0040ec70
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0
call fcn.0040ec70
push ebp
lea ecx, [esp + 0x1c]
call fcn.0041ace0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
mov bl, 5
push edx
mov byte [esp + 0x68], bl
call fcn.0041ab80
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 6
call fcn.00401b00
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x5c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b687
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 0x45607c
lea ecx, [esp + 0x20]
call fcn.00401e50
cmp byte [edi + 0x34], 0
je 0x41b77d
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.0041afd0
add eax, 4
lea ecx, [edi + 0x28]
push eax
mov byte [esp + 0x60], 7
call fcn.00401b00
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], bl
call fcn.0040ec70
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x28]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
jle 0x41b6f1
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov eax, dword [esi]
push 0
push eax
call fcn.004339d6
xor ecx, ecx
add esp, 8
cmp eax, 0xffffffff
mov eax, dword [esi]
setne cl
sub eax, 0x10
cmp dword [eax + 0xc], ebx
mov edi, ecx
jle 0x41b71d
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push 0x44c67c
lea eax, [esp + 0x20]
push esi
push eax
call fcn.004344e5
add esp, 0xc
test edi, edi
jne 0x41b757
test eax, eax
jne 0x41b757
mov ecx, dword [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x2c]
push ebx
push edx
mov dword [esp + 0x34], 0xfeff
call fcn.00434203
add esp, 0x10
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x41b77d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push edx
push ecx
push 2
push eax
call fcn.00434203
mov eax, dword [esp + 0x2c]
push eax
call fcn.00433b7f
add esp, 0x14
push 0x464f30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b7ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b7d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00431d0b
add esp, 0x4c
ret 8