Function at 0x4cdc40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x654c54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
movzx ecx, byte [eax + 0x580]
test ecx, ecx
je 0x4cdf38
mov edx, dword [ebp - 0x98]
add edx, 0x5a0
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x18], 0x10
jb 0x4cdca9
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x9c], edx
jmp 0x4cdcb5
mov eax, dword [ebp - 0x60]
add eax, 4
mov dword [ebp - 0x9c], eax
push 0x612d08
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.005cc851
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4cdf38
mov dword [ebp - 0x18], 0x42beef78
mov edx, dword [ebp - 0x10]
push edx
push 1
push 4
lea eax, [ebp - 0x18]
push eax
call fcn.005ccec6
add esp, 0x10
mov dword [ebp - 0x20], 2
mov ecx, dword [ebp - 0x10]
push ecx
push 1
push 4
lea edx, [ebp - 0x20]
push edx
call fcn.005ccec6
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
push 1
push 4
mov ecx, dword [ebp - 0x98]
add ecx, 8
push ecx
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x3e0]
mov dword [ebp - 0x64], eax
mov cx, word [ebp - 0x64]
mov word [ebp - 0x24], cx
mov edx, dword [ebp - 0x10]
push edx
push 1
push 2
lea eax, [ebp - 0x24]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x3e0]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x98]
add eax, 0x3cc
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
cmp dword [ecx + 0x18], 0x10
jb 0x4cdd85
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 4]
mov dword [ebp - 0xa0], eax
jmp 0x4cdd91
mov ecx, dword [ebp - 0x6c]
add ecx, 4
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x68]
push eax
push 1
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.005ccec6
add esp, 0x10
lea ecx, [ebp - 0x4c]
call fcn.00529dc0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x644]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0052a2f0
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x98]
add ecx, 0x62c
call fcn.004bfc10
jmp 0x4cddf3
lea ecx, [ebp - 0x54]
call fcn.00511bc0
mov eax, dword [ebp - 0x98]
add eax, 0x62c
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x58], eax
mov ecx, 1
test ecx, ecx
je 0x4cde3a
cmp dword [ebp - 0x88], 0
jne 0x4cde3a
call fcn.005cbe1d
mov edx, dword [ebp - 0x88]
mov eax, dword [edx]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0053d2f0
movzx edx, al
test edx, edx
je 0x4cde8e
lea ecx, [ebp - 0x54]
call fcn.004edbb0
push eax
lea ecx, [ebp - 0x4c]
call fcn.0052a340
lea ecx, [ebp - 0x54]
call fcn.004edbb0
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x1c]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0052a2f0
jmp 0x4cddeb
lea ecx, [ebp - 0x4c]
call fcn.0052ab70
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
push edx
push 1
push 4
lea eax, [ebp - 0x1c]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
push 1
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0052ab20
push eax
call fcn.005ccec6
add esp, 0x10
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x4e4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.005ccec6
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x98]
add ecx, 0x5bc
call fcn.0052ab70
push eax
push 1
mov ecx, dword [ebp - 0x98]
add ecx, 0x5bc
call fcn.0052ab20
push eax
call fcn.005ccec6
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call fcn.005cc711
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00529e50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret