Function at 0x4c8f07
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594a0d
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x64c194]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp - 0x114]
cmp dword [eax + 0x3c], 0
je 0x4c8f52
mov eax, dword [ebp - 0x114]
movzx eax, byte [eax + 0x41]
test eax, eax
jne 0x4c8f5e
mov al, 1
jmp 0x4c917f
mov dword [ebp - 0x10], 8
push 0xffffffffffffffff
mov eax, dword [ebp - 0x114]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x114]
call dword [eax + 4]
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 0x4c8f98
xor al, al
jmp 0x4c917f
lea eax, [ebp - 0x6d]
mov dword [ebp - 0x6c], eax
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.0040eb93
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00471316
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.00459130
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
call fcn.004c58e3
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00459130
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
call fcn.004c58e3
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x114]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x80]
push eax
push dword [ebp - 0x8c]
mov eax, dword [ebp - 0x114]
add eax, 0x44
push eax
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x90]
call dword [eax + 0x18]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x4c9062
cmp dword [ebp - 0x118], 1
je 0x4c906c
cmp dword [ebp - 0x118], 3
je 0x4c9138
jmp 0x4c9151
mov eax, dword [ebp - 0x114]
mov byte [eax + 0x41], 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x34]
call fcn.00459130
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.004c58e3
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xa0]
mov dword [ebp - 0x38], eax
je 0x4c90fd
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00459130
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
call fcn.004c58e3
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x114]
push dword [eax + 0x4c]
push dword [ebp - 0x38]
push 1
push dword [ebp - 0xb0]
call fcn.0052fe57
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x4c90fd
mov byte [ebp - 0x61], 0
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0040eb93
mov al, byte [ebp - 0x61]
jmp 0x4c917f
mov eax, dword [ebp - 0x114]
movzx eax, byte [eax + 0x41]
test eax, eax
jne 0x4c9124
mov byte [ebp - 0x62], 1
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0040eb93
mov al, byte [ebp - 0x62]
jmp 0x4c917f
cmp dword [ebp - 0x38], 0
jne 0x4c9136
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0042398d
jmp 0x4c916a
mov byte [ebp - 0x63], 1
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0040eb93
mov al, byte [ebp - 0x63]
jmp 0x4c917f
mov byte [ebp - 0x64], 0
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0040eb93
mov al, byte [ebp - 0x64]
jmp 0x4c917f
jmp 0x4c8fba
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0052a758
leave
ret