Function at 0x4ac0e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ede08
mov eax, dword fs:[0]
push eax
sub esp, 0xe20
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0xe1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0xe34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xe44]
lea ecx, [esp + 0xe14]
call fcn.004abfc0
push 0xc
xor ebx, ebx
push str.UserData.wp
lea eax, [esp + 0xe1c]
mov dword [esp + 0xe44], ebx
call fcn.004088a0
push 0x140
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.004d1df0
add esp, 0xc
mov dword [esp + 0x18], ebx
cmp dword [ebp + 0x20], ebx
je 0x4ac220
lea ebx, [ebx]
mov esi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
add ecx, esi
cmp esi, ecx
jbe 0x4ac181
call fcn.004c96d9
mov edx, dword [ebp + 4]
mov dword [esp + 0x30], esi
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], edx
call fcn.004ad120
mov esi, eax
mov ecx, 8
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, ecx
shl eax, 4
mov dword [esp + eax + 0x54], edx
mov edx, dword [esp + 0x38]
mov dword [esp + eax + 0x58], edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + eax + 0x54]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x44]
inc ecx
mov eax, ecx
shl eax, 4
lea eax, [esp + eax + 0x54]
mov dword [eax], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp eax, ebx
je 0x4ac217
inc dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x1c]
cmp dword [ebp + 0x18], ecx
ja 0x4ac20c
mov dword [ebp + 0x1c], ebx
dec eax
mov dword [ebp + 0x20], eax
cmp eax, ebx
jne 0x4ac217
mov dword [ebp + 0x1c], ebx
cmp dword [ebp + 0x20], ebx
jne 0x4ac170
push 0x31c
lea eax, [esp + 0x19c]
push ebx
push eax
mov dword [esp + 0x1a0], ebx
call fcn.004d1df0
mov ecx, dword [ebp + 0x40]
lea edx, [esp + 0x1a0]
push edx
lea esi, [ebp + 0x24]
mov dword [esp + 0x2c], ecx
call fcn.004ac070
push 0x31c
lea eax, [esp + 0x4cc]
push ebx
push eax
mov dword [esp + 0x4d0], ebx
call fcn.004d1df0
mov ecx, dword [ebp + 0x60]
lea edx, [esp + 0x4d0]
push edx
lea esi, [ebp + 0x44]
mov dword [esp + 0x44], ecx
call fcn.004ac070
push 0x31c
lea eax, [esp + 0x7fc]
push ebx
push eax
mov dword [esp + 0x800], ebx
call fcn.004d1df0
mov ecx, dword [ebp + 0x80]
lea edx, [esp + 0x800]
push edx
lea esi, [ebp + 0x64]
mov dword [esp + 0x50], ecx
call fcn.004ac070
push 0x31c
lea eax, [esp + 0xb2c]
push ebx
push eax
mov dword [esp + 0xb30], ebx
call fcn.004d1df0
mov ecx, dword [ebp + 0xa0]
lea edx, [esp + 0xb30]
push edx
lea esi, [ebp + 0x84]
mov dword [esp + 0x68], ecx
call fcn.004ac070
mov eax, dword [esp + 0xe58]
mov esi, 8
add esp, 0x40
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xe2c], esi
jae 0x4ac310
lea eax, [esp + 0xe18]
push 0x502790
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004c97c6
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jne 0x4ac34b
cmp dword [esp + 0xe2c], esi
jb 0x4ac344
mov ecx, dword [esp + 0xe18]
push ecx
call fcn.004c8f17
add esp, 4
xor al, al
jmp 0x4ac44e
push eax
push 1
lea edx, [esp + 0x20]
push 4
push edx
call fcn.004ca3f1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x6c]
push 0x10
push edx
call fcn.004ca3f1
mov eax, dword [esp + 0x34]
push eax
push 1
lea ecx, [esp + 0x44]
push 4
push ecx
call fcn.004ca3f1
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x1cc]
push 4
push ecx
call fcn.004ca3f1
mov edx, dword [esp + 0x54]
add esp, 0x40
push edx
push 1
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.004ca3f1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x4cc]
push 4
push eax
call fcn.004ca3f1
mov ecx, dword [esp + 0x34]
push ecx
push 1
lea edx, [esp + 0x48]
push 4
push edx
call fcn.004ca3f1
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
push eax
push ecx
lea edx, [esp + 0x80c]
push 4
push edx
call fcn.004ca3f1
mov eax, dword [esp + 0x54]
add esp, 0x40
push eax
push 1
lea ecx, [esp + 0x30]
push 4
push ecx
call fcn.004ca3f1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0xb0c]
push 4
push ecx
call fcn.004ca3f1
mov edx, dword [esp + 0x34]
push edx
call fcn.004c9c66
add esp, 0x24
cmp dword [esp + 0xe2c], esi
jb 0x4ac44c
mov eax, dword [esp + 0xe18]
push eax
call fcn.004c8f17
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xe34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe1c]
xor ecx, esp
call fcn.004c8f08
add esp, 0xe2c
ret 4