Function at 0x404d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a5d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov dword [ebp - 0xa4], ecx
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0x44], 0
je 0x404dce
mov ecx, dword [ebp - 0xa4]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x404dda
mov al, 1
jmp 0x405022
mov dword [ebp - 0x10], 8
push 0xffffffffffffffff
mov eax, dword [ebp - 0xa4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp - 0x3c]
xor edx, edx
cmp ecx, dword [ebp - 0x38]
sete dl
movzx eax, dl
test eax, eax
je 0x404e19
xor al, al
jmp 0x405022
lea ecx, [ebp - 0x59]
mov dword [ebp - 0x58], ecx
lea edx, [ebp - 0x30]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.00404830
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.00405440
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00405620
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x1c], 0x10
jb 0x404e79
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x6c], eax
jmp 0x404e7f
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x6c], ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00406170
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x74]
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x404ef1
cmp dword [ebp - 0xac], 1
je 0x404efb
cmp dword [ebp - 0xac], 3
je 0x404fd2
jmp 0x404fee
mov eax, dword [ebp - 0xa4]
mov byte [eax + 0x49], 0
cmp dword [ebp - 0x1c], 0x10
jb 0x404f09
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x78], ecx
jmp 0x404f0f
lea edx, [ebp - 0x30]
mov dword [ebp - 0x78], edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00406170
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
je 0x404f94
cmp dword [ebp - 0x1c], 0x10
jb 0x404f38
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
jmp 0x404f3e
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x7c], ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406170
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 1
mov edx, dword [ebp - 0x80]
push edx
call fcn.0040a59f
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x404f94
mov byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00404830
mov al, byte [ebp - 0x4d]
jmp 0x405022
mov eax, dword [ebp - 0xa4]
movzx ecx, byte [eax + 0x49]
test ecx, ecx
jne 0x404fbe
mov byte [ebp - 0x4e], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00404830
mov al, byte [ebp - 0x4e]
jmp 0x405022
cmp dword [ebp - 0x34], 0
jne 0x404fd0
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.00404540
jmp 0x40500a
mov byte [ebp - 0x4f], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00404830
mov al, byte [ebp - 0x4f]
jmp 0x405022
mov byte [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00404830
mov al, byte [ebp - 0x50]
jmp 0x405022
jmp 0x404e4e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret