Function at 0x472d30
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x547298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov esi, ecx
push ebx
mov dword [esp + 0x18], esi
call fcn.00472a70
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x44]
xor eax, eax
mov dword [esi + 0x1d8], edi
mov dword [esp + 0x3c], eax
mov dword [esi], 0x550ac4
mov dword [esp + 0x10], eax
add ebp, 0x18
push eax
mov eax, dword [0x67a8cc]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x54]
push ecx
push 1
push 2
push edx
mov dword [esp + 0x64], 0
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x64]
add esp, 0x1c
and eax, 0xffff
mov ecx, esi
lea ebp, [ebp + eax*8 + 0x1c]
push ebp
call fcn.0043e9b0
add ebp, 0x10
mov ecx, esi
push ebp
call fcn.0043ee20
mov ecx, dword [0x67a8cc]
add ebp, 0x10
push 0
push ebp
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x1c]
push edx
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x44], ecx
add esp, 0x1c
lea ecx, [edi + 0x220]
mov dword [esp + 0x2c], edx
call fcn.00473000
mov ebp, eax
mov ax, word [esp + 0x10]
sub word [esp + 0x2c], bp
sub word [esp + 0x2e], ax
mov ecx, esi
call fcn.00473050
test eax, eax
je 0x472e54
mov ax, word [ebx + 0x10]
mov edx, dword [esp + 0x28]
movsx eax, ax
mov ecx, eax
mov word [esp + 0x28], ax
sub ecx, edx
movsx edx, word [ebx + 0x16]
add word [esp + 0x2c], cx
push edx
lea ecx, [esp + 0x2c]
call fcn.00433ef0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
movsx edx, word [ebx + 0x16]
movsx eax, word [ebx + 0x12]
movsx ecx, word [ebx + 0x14]
sub edx, eax
inc edx
push edx
movsx edx, word [ebx + 0x10]
sub ecx, edx
inc ecx
push ecx
push 0
push 0
lea ecx, [esp + 0x28]
call fcn.004c9320
mov ecx, dword [eax]
mov dword [ebx + 0x34], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x2c]
inc eax
mov dword [ebx + 0x38], edx
mov word [esp + 0x28], ax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x10], eax
lea ecx, [eax + ebp - 1]
mov word [esp + 0x2c], cx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x14], edx
movsx eax, word [esi + 0x16]
movsx ecx, word [esi + 0x12]
movsx edx, word [esi + 0x14]
sub eax, ecx
lea ecx, [esp + 0x18]
inc eax
push eax
movsx eax, word [esi + 0x10]
sub edx, eax
inc edx
push edx
push 0
push 0
call fcn.004c9320
mov ecx, dword [eax]
mov dword [esi + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x38], edx
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x2e]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2a]
sub edx, ecx
mov dword [esp + 0x18], eax
inc edx
mov ecx, esi
add word [esp + 0x1a], dx
call fcn.00473050
test eax, eax
je 0x472f3e
mov ax, word [edi + 0x10]
mov cx, word [edi + 0x12]
mov ebx, dword [esp + 0x18]
movsx eax, ax
mov edx, eax
mov word [esp + 0x18], ax
movsx eax, cx
sub edx, ebx
mov ecx, eax
add word [esp + 0x1c], dx
mov ebx, dword [esp + 0x1a]
sub ecx, ebx
mov word [esp + 0x1a], ax
add word [esp + 0x1e], cx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], edx
movsx eax, word [edi + 0x16]
movsx ecx, word [edi + 0x12]
movsx edx, word [edi + 0x14]
sub eax, ecx
lea ecx, [esp + 0x20]
inc eax
push eax
movsx eax, word [edi + 0x10]
sub edx, eax
inc edx
push edx
push 0
push 0
call fcn.004c9320
mov ecx, dword [eax]
mov dword [edi + 0x34], ecx
mov ecx, edi
mov edx, dword [eax + 4]
mov dword [edi + 0x38], edx
call fcn.00451bb0
test eax, eax
je 0x472fc6
sub word [esp + 0x1c], bp
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
movsx ecx, word [edi + 0x16]
movsx edx, word [edi + 0x12]
movsx eax, word [edi + 0x14]
sub ecx, edx
inc ecx
push ecx
movsx ecx, word [edi + 0x10]
sub eax, ecx
lea ecx, [esp + 0x24]
inc eax
push eax
push 0
push 0
call fcn.004c9320
mov edx, dword [eax]
mov dword [edi + 0x34], edx
mov eax, dword [eax + 4]
mov dword [edi + 0x38], eax
mov ecx, dword [esi + 0x19c]
test ecx, ecx
je 0x472fe2
call fcn.00440670
mov eax, dword [esi + 0x19c]
mov ecx, dword [eax]
and ch, 0xef
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc