Function at 0x41c12c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54eed9
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x44], 0
je 0x41c177
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax + 0x49]
test eax, eax
jne 0x41c183
mov al, 1
jmp 0x41c3d4
mov dword [ebp - 0x10], 8
push 0xffffffffffffffff
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x98]
call dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
or dword [ebp - 0x40], 0xffffffff
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x41c1bd
xor al, al
jmp 0x41c3d4
lea eax, [ebp - 0x5d]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x9c], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00405420
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00413d90
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00406230
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x20], 0x10
jb 0x41c21a
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x70], eax
jmp 0x41c220
lea eax, [ebp - 0x34]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0x48]
call fcn.0041be64
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
mov eax, dword [ebp - 0x98]
add eax, 0x4c
push eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x78]
call dword [eax + 0x18]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x41c28e
cmp dword [ebp - 0xa0], 1
je 0x41c298
cmp dword [ebp - 0xa0], 3
je 0x41c378
jmp 0x41c398
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x49], 0
cmp dword [ebp - 0x20], 0x10
jb 0x41c2a6
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x7c], eax
jmp 0x41c2ac
lea eax, [ebp - 0x34]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x4c]
call fcn.0041be64
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
je 0x41c336
cmp dword [ebp - 0x20], 0x10
jb 0x41c2d4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x80], eax
jmp 0x41c2da
lea eax, [ebp - 0x34]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x80]
lea ecx, [ebp - 0x50]
call fcn.0041be64
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x98]
push dword [eax + 0x54]
push dword [ebp - 0x38]
push 1
push dword [ebp - 0x84]
call fcn.004b4672
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x41c336
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x51]
jmp 0x41c3d4
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax + 0x49]
test eax, eax
jne 0x41c364
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x52]
jmp 0x41c3d4
cmp dword [ebp - 0x38], 0
jne 0x41c376
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040d0e0
jmp 0x41c3b8
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x53]
jmp 0x41c3d4
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x54]
jmp 0x41c3d4
jmp 0x41c1ef
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b303a
leave
ret