Function at 0x4c8cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x733998
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x819540]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xfc], ecx
mov eax, dword [ebp - 0xfc]
cmp dword [eax + 0x3c], 0
je 0x4c8d0b
mov ecx, dword [ebp - 0xfc]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x4c8d17
mov al, 1
jmp 0x4c8fa9
mov dword [ebp - 0x10], 8
push 0xffffffffffffffff
mov eax, dword [ebp - 0xfc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xfc]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 0xffffffff
mov ecx, dword [ebp - 0x40]
xor edx, edx
cmp ecx, dword [ebp - 0x3c]
sete dl
movzx eax, dl
test eax, eax
je 0x4c8d56
xor al, al
jmp 0x4c8fa9
lea ecx, [ebp - 0x6d]
mov dword [ebp - 0x6c], ecx
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.0041a030
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004c9120
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x10
jb 0x4c8d89
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x74], edx
jmp 0x4c8d8f
lea eax, [ebp - 0x30]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x74]
push edx
lea ecx, [ebp - 0x48]
call fcn.004c94a0
lea ecx, [ebp - 0x48]
call fcn.004c9430
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x1c], 0x10
jb 0x4c8dbe
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x80], ecx
jmp 0x4c8dc4
lea edx, [ebp - 0x30]
mov dword [ebp - 0x80], edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x50]
call fcn.004c94a0
lea ecx, [ebp - 0x50]
call fcn.004c9430
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0xfc]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x78]
add edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0xfc]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x88]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x88]
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0
je 0x4c8e4a
cmp dword [ebp - 0x100], 1
je 0x4c8e54
cmp dword [ebp - 0x100], 3
je 0x4c8f59
jmp 0x4c8f75
mov eax, dword [ebp - 0xfc]
mov byte [eax + 0x41], 0
cmp dword [ebp - 0x1c], 0x10
jb 0x4c8e65
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x8c], ecx
jmp 0x4c8e6e
lea edx, [ebp - 0x30]
mov dword [ebp - 0x8c], edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x58]
call fcn.004c94a0
lea ecx, [ebp - 0x58]
call fcn.004c9430
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x90]
mov dword [ebp - 0x38], edx
je 0x4c8f1b
cmp dword [ebp - 0x1c], 0x10
jb 0x4c8eae
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x94], eax
jmp 0x4c8eb7
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x94], ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x60]
call fcn.004c94a0
lea ecx, [ebp - 0x60]
call fcn.004c9430
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.005bc0ed
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x4c8f1b
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0041a030
mov al, byte [ebp - 0x61]
jmp 0x4c8fa9
mov edx, dword [ebp - 0xfc]
movzx eax, byte [edx + 0x41]
test eax, eax
jne 0x4c8f45
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0041a030
mov al, byte [ebp - 0x62]
jmp 0x4c8fa9
cmp dword [ebp - 0x38], 0
jne 0x4c8f57
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004c7de0
jmp 0x4c8f91
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0041a030
mov al, byte [ebp - 0x63]
jmp 0x4c8fa9
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0041a030
mov al, byte [ebp - 0x64]
jmp 0x4c8fa9
jmp 0x4c8d7b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005b2a44
mov esp, ebp
pop ebp
ret