Function at 0x473e30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x228]
push dword [esi]
push 1
push 3
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x473e7d
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x228]
cmp word [ecx], 0x4653
jne 0x473e69
cmp byte [ecx + 2], 0x57
jne 0x473e69
push ebx
push edi
mov edi, dword [esi + 4]
push edi
call fcn.00593e38
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x473eb8
pop edi
lea eax, [ebx + 1]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [esi]
add edi, 0xfffffffd
push 1
push edi
push ebx
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x473ff4
push 4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0xd0ffc8ff
lea eax, [edi - 1]
add eax, ebx
push ecx
push eax
push ebx
mov dword [ebp - 0x214], eax
call fcn.004740c0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x473f87
push edi
call fcn.00474130
lea edx, [edi + 2]
push edx
call fcn.00474130
mov dword [edi + 6], 0x4649464a
mov word [edi + 0xa], 0x100
mov byte [edi + 0xc], 0
movzx esi, byte [edx + 2]
movzx eax, byte [edx + 3]
shl esi, 8
add eax, edx
add esi, 2
add esi, eax
push esi
call fcn.00474130
add esp, 0xc
cmp byte [esi + 1], 0xda
je 0x473f61
mov edi, edi
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
add eax, esi
lea esi, [ecx + 2]
add esi, eax
push esi
call fcn.00474130
add esp, 4
cmp byte [esi + 1], 0xda
jne 0x473f40
push 2
lea eax, [ebp - 0x10]
mov word [ebp - 0x10], 0xc9ff
push eax
push dword [ebp - 0x214]
dec esi
push esi
call fcn.004740c0
add esp, 0x10
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x473fa6
push ebx
call fcn.00592c4b
add esp, 4
mov eax, 2
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push eax
call fcn.00474130
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.0045c8f0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0045cae0
lea eax, [ebp - 0x224]
push 0x12
push eax
call fcn.0045cb00
add esp, 0x1c
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x47400a
push ebx
call fcn.00592c4b
add esp, 4
pop edi
pop ebx
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [eax]
mov eax, esi
sub eax, edi
push 1
inc eax
push eax
push edi
call fcn.0059628c
mov edi, dword [ebp - 0x214]
push dword [edi]
push 1
push 0x1a4
push 0x637d98
call fcn.0059628c
push dword [edi]
mov eax, dword [ebp - 0x21c]
sub eax, esi
inc eax
push 1
push eax
lea eax, [esi + 1]
push eax
call fcn.0059628c
push edi
call fcn.0045ca10
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0045cae0
lea eax, [ebp - 0x224]
push 0x11
push eax
call fcn.0045cb00
add esp, 0x44
mov esi, eax
push 0x10
push str.Seattle_Film_Works
push dword [ebp - 0x218]
push esi
call fcn.0047a8d0
push esi
movzx edi, ax
call fcn.0045ca10
push ebx
call fcn.00592c4b
lea eax, [ebp - 0x210]
push eax
call fcn.0045c700
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov ax, di
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret