Function at 0x41b3b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x447e00
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4630d8]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630d8]
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 0x41b735
push 0x464f40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x3c]
push eax
call fcn.00435275
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041ac30
cmp esi, 8
mov dword [esp + 0x5c], 0
ja case.default.0x41b42c
jmp dword [esi*4 + 0x41b758]
push str.__Always_
lea ecx, [esp + 0x18]
call fcn.0041abf0
jmp 0x41b58d
push str.__Fatal_
lea ecx, [esp + 0x18]
call fcn.0041abf0
jmp 0x41b58d
push str.__Warning_
lea ecx, [esp + 0x18]
call fcn.0041abf0
jmp 0x41b58d
push str.__Message_
lea ecx, [esp + 0x18]
call fcn.0041abf0
jmp 0x41b58d
push str.__Info_
lea ecx, [esp + 0x18]
call fcn.0041abf0
jmp 0x41b58d
push str.__Trace_
lea ecx, [esp + 0x18]
call fcn.0041abf0
jmp 0x41b58d
push str.__Stats_
lea ecx, [esp + 0x18]
call fcn.0041abf0
jmp 0x41b58d
push str.__Debug_
lea ecx, [esp + 0x18]
call fcn.0041abf0
jmp 0x41b58d
push str.__VDebug_
lea ecx, [esp + 0x18]
call fcn.0041abf0
jmp 0x41b58d
push 0x44ccb0
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 0x41b54a
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x18]
call fcn.0041abf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], bl
call fcn.0040ed80
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 2
call fcn.0040ed80
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 1
call fcn.0040ed80
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0
call fcn.0040ed80
push ebp
lea ecx, [esp + 0x1c]
call fcn.0041ac30
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.0041aad0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 6
call fcn.00401b30
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 0x41b5e7
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 0x41b6dd
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.0041af30
add eax, 4
lea ecx, [edi + 0x28]
push eax
mov byte [esp + 0x60], 7
call fcn.00401b30
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], bl
call fcn.0040ed80
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x28]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
jle 0x41b651
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401c20
mov eax, dword [esi]
push 0
push eax
call fcn.00434d2f
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 0x41b67d
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401c20
mov esi, dword [esi]
push 0x44bafc
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0043411b
add esp, 0xc
test edi, edi
jne 0x41b6b7
test eax, eax
jne 0x41b6b7
mov ecx, dword [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x2c]
push ebx
push edx
mov dword [esp + 0x34], 0xfeff
call fcn.00433e39
add esp, 0x10
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x41b6dd
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push edx
push ecx
push 2
push eax
call fcn.00433e39
mov eax, dword [esp + 0x2c]
push eax
call fcn.004337b5
add esp, 0x14
push 0x464f40
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 0x41b70d
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 0x41b735
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.00431f44
add esp, 0x4c
ret 8