Function at 0x45aed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x58005c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x524], ecx
lea eax, [ebp - 0x18]
push eax
call dword [0x55813c]
mov ecx, dword [ebp - 0x524]
mov dword [ecx + 0x24], 0xa
movzx edx, word [ebp - 0x18]
mov eax, dword [ebp - 0x524]
mov dword [eax + 0x64], edx
movzx ecx, word [ebp - 0x16]
mov edx, dword [ebp - 0x524]
mov dword [edx + 0x68], ecx
movzx eax, word [ebp - 0x12]
mov ecx, dword [ebp - 0x524]
mov dword [ecx + 0x6c], eax
movzx edx, word [ebp - 0x14]
mov eax, dword [ebp - 0x524]
mov dword [eax + 0x70], edx
movzx ecx, word [ebp - 0x10]
mov edx, dword [ebp - 0x524]
mov dword [edx + 0x74], ecx
movzx eax, word [ebp - 0xe]
mov ecx, dword [ebp - 0x524]
mov dword [ecx + 0x78], eax
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 0x524]
mov dword [eax + 0x7c], edx
movzx ecx, word [ebp - 0xa]
mov edx, dword [ebp - 0x524]
mov dword [edx + 0x80], ecx
mov eax, dword [ebp - 0x524]
mov ecx, dword [eax + 0xa0]
add ecx, 1
mov edx, dword [ebp - 0x524]
mov dword [edx + 0xa0], ecx
call fcn.00459650
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x524]
mov ecx, dword [eax + 0xe4cc]
push ecx
mov edx, dword [ebp - 4]
push edx
push str._s_s.sav
lea eax, [ebp - 0x120]
push eax
call dword [0x5582d0]
add esp, 0x10
push 0x55e164
lea ecx, [ebp - 0x120]
push ecx
call fcn.004de640
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45b031
cmp dword [ebp + 8], 0
je 0x45b02a
call fcn.0041d050
test eax, eax
jne 0x45affb
mov edx, dword [ebp - 4]
push edx
push 0x55e168
lea eax, [ebp - 0x520]
push eax
call dword [0x5582d0]
add esp, 0xc
jmp 0x45b014
mov ecx, dword [ebp - 4]
push ecx
push 0x55e1a0
lea edx, [ebp - 0x520]
push edx
call dword [0x5582d0]
add esp, 0xc
push 0
push 0x55e1d8
lea eax, [ebp - 0x520]
push eax
push 0
call dword [0x55828c]
xor eax, eax
jmp 0x45b176
mov ecx, dword [ebp - 8]
push ecx
push 1
push 0x40
mov edx, dword [ebp - 0x524]
add edx, 4
push edx
call fcn.0041d70e
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
push 1
push 0x800
mov ecx, dword [ebp - 0x524]
add ecx, 0x44
push ecx
call fcn.0041d70e
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
push 1
push 0x8020
mov eax, dword [ebp - 0x524]
add eax, 0x844
push eax
call fcn.0041d70e
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
push 1
push 0x220
mov edx, dword [ebp - 0x524]
add edx, 0x8864
push edx
call fcn.0041d70e
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
push 1
push 0x520
mov ecx, dword [ebp - 0x524]
add ecx, 0x8a84
push ecx
call fcn.0041d70e
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
push 1
push 0x820
mov eax, dword [ebp - 0x524]
add eax, 0x8fa4
push eax
call fcn.0041d70e
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
push 1
push 0x4020
mov edx, dword [ebp - 0x524]
add edx, 0x97c4
push edx
call fcn.0041d70e
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
push 1
push 0x420
mov ecx, dword [ebp - 0x524]
add ecx, 0xd7e4
push ecx
call fcn.0041d70e
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
push 1
push 0x420
mov eax, dword [ebp - 0x524]
add eax, 0xdc04
push eax
call fcn.0041d70e
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
push 1
push 0x420
mov edx, dword [ebp - 0x524]
add edx, 0xe024
push edx
call fcn.0041d70e
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.0041329a
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004130a1
mov esp, ebp
pop ebp
ret 4