Function at 0x41aa4c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ec69
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc4], ecx
or dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x41aabf
cmp dword [ebp + 8], 0xffffffff
je 0x41aaa4
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc8], eax
jmp 0x41aab2
or eax, 0xffffffff
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
jmp 0x41ae7b
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x41ab1c
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 0xc4]
mov ecx, dword [ecx + 0x24]
mov ecx, dword [ecx]
add ecx, dword [eax]
cmp dword [ebp - 0x70], ecx
jae 0x41ab1c
mov al, byte [ebp + 8]
mov byte [ebp - 0x71], al
mov ecx, dword [ebp - 0xc4]
call fcn.00414010
mov cl, byte [ebp - 0x71]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x41ae7b
mov eax, dword [ebp - 0xc4]
cmp dword [eax + 0x54], 0
jne 0x41ab30
or eax, 0xffffffff
jmp 0x41ae7b
mov ecx, dword [ebp - 0xc4]
call fcn.0041c422
mov eax, dword [ebp - 0xc4]
cmp dword [eax + 0x44], 0
jne 0x41ab99
mov al, byte [ebp + 8]
mov byte [ebp - 0x79], al
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x80], eax
push dword [ebp - 0x80]
movsx eax, byte [ebp - 0x79]
push eax
call fcn.004b48dd
pop ecx
pop ecx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
movzx eax, cl
test eax, eax
je 0x41ab82
mov eax, dword [ebp + 8]
mov dword [ebp - 0xcc], eax
jmp 0x41ab89
or dword [ebp - 0xcc], 0xffffffff
mov eax, dword [ebp - 0xcc]
jmp 0x41ae7b
mov dword [ebp - 0x10], 8
mov al, byte [ebp + 8]
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x89]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0xd0], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.00405420
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00413d90
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00406230
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x90]
lea ecx, [ebp - 0x48]
call fcn.0041be64
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x3c]
call fcn.00406230
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x4c]
call fcn.0041be64
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x94]
add eax, dword [ebp - 0x98]
push eax
push dword [ebp - 0xa0]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x15]
push eax
mov eax, dword [ebp - 0xc4]
add eax, 0x4c
push eax
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xa4]
call dword [eax + 0x14]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jl 0x41ae3f
cmp dword [ebp - 0xd4], 1
jle 0x41acb4
cmp dword [ebp - 0xd4], 3
je 0x41adcc
jmp 0x41ae3f
lea ecx, [ebp - 0x3c]
call fcn.00406230
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x50]
call fcn.0041be64
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
je 0x41ad43
lea ecx, [ebp - 0x3c]
call fcn.00406230
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xc4]
push dword [eax + 0x54]
push dword [ebp - 0x40]
push 1
push dword [ebp - 0xb0]
call fcn.004b4592
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x41ad43
or dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
jmp 0x41ae7b
mov eax, dword [ebp - 0xc4]
mov byte [eax + 0x49], 1
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x15]
cmp eax, ecx
je 0x41ad7c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
jmp 0x41ae7b
cmp dword [ebp - 0x40], 0
jbe 0x41ad84
jmp 0x41adc7
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0x20
jae 0x41ada4
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0040d0e0
jmp 0x41adc7
or dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x60]
jmp 0x41ae7b
jmp 0x41ae5f
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0xc0], eax
mov al, byte [ebp - 0x15]
mov byte [ebp - 0xb9], al
push dword [ebp - 0xc0]
movsx eax, byte [ebp - 0xb9]
push eax
call fcn.004b48dd
pop ecx
pop ecx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
movzx eax, cl
test eax, eax
je 0x41ae13
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd8], eax
jmp 0x41ae1a
or dword [ebp - 0xd8], 0xffffffff
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x64]
jmp 0x41ae7b
or dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00405420
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x68]
jmp 0x41ae7b
jmp 0x41abde
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004b2f5a
leave
ret 4