Function at 0x41ca90
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4495a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4650f0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4650f0]
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 0x41ce15
push 0x466f50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x3c]
push eax
call fcn.00436895
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041c320
cmp esi, 8
mov dword [esp + 0x5c], 0
ja case.default.0x41cb0c
jmp dword [esi*4 + 0x41ce38]
push str.__Always_
lea ecx, [esp + 0x18]
call fcn.0041c2e0
jmp 0x41cc6d
push str.__Fatal_
lea ecx, [esp + 0x18]
call fcn.0041c2e0
jmp 0x41cc6d
push str.__Warning_
lea ecx, [esp + 0x18]
call fcn.0041c2e0
jmp 0x41cc6d
push str.__Message_
lea ecx, [esp + 0x18]
call fcn.0041c2e0
jmp 0x41cc6d
push str.__Info_
lea ecx, [esp + 0x18]
call fcn.0041c2e0
jmp 0x41cc6d
push str.__Trace_
lea ecx, [esp + 0x18]
call fcn.0041c2e0
jmp 0x41cc6d
push str.__Stats_
lea ecx, [esp + 0x18]
call fcn.0041c2e0
jmp 0x41cc6d
push str.__Debug_
lea ecx, [esp + 0x18]
call fcn.0041c2e0
jmp 0x41cc6d
push str.__VDebug_
lea ecx, [esp + 0x18]
call fcn.0041c2e0
jmp 0x41cc6d
push 0x44ed28
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 0x41cc2a
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x18]
call fcn.0041c2e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], bl
call fcn.00411520
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 2
call fcn.00411520
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 1
call fcn.00411520
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0
call fcn.00411520
push ebp
lea ecx, [esp + 0x1c]
call fcn.0041c320
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.0041c1c0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 6
call fcn.00401d00
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 0x41ccc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 0x4581ec
lea ecx, [esp + 0x20]
call fcn.00402020
cmp byte [edi + 0x34], 0
je 0x41cdbd
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.0041c610
add eax, 4
lea ecx, [edi + 0x28]
push eax
mov byte [esp + 0x60], 7
call fcn.00401d00
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], bl
call fcn.00411520
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x28]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
jle 0x41cd31
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401df0
mov eax, dword [esi]
push 0
push eax
call fcn.00435038
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 0x41cd5d
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push 0x44e6e4
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00435b45
add esp, 0xc
test edi, edi
jne 0x41cd97
test eax, eax
jne 0x41cd97
mov ecx, dword [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x2c]
push ebx
push edx
mov dword [esp + 0x34], 0xfeff
call fcn.00435863
add esp, 0x10
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x41cdbd
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push edx
push ecx
push 2
push eax
call fcn.00435863
mov eax, dword [esp + 0x2c]
push eax
call fcn.004351df
add esp, 0x14
push 0x466f50
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 0x41cded
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 0x41ce15
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.00433122
add esp, 0x4c
ret 8