Function at 0x473850
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x4b4d40]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x2a8], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x170]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
mov byte [ebp - 0x49], 0
mov byte [ebp - 0x49], 1
lea edx, [ebp - 0x170]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00461660
add esp, 8
lea ecx, [ebp - 0x48]
push ecx
call fcn.004283d0
push eax
push str.local_s_art_s
lea edx, [ebp - 0x170]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
push 0
lea eax, [ebp - 0x170]
push eax
call fcn.00461530
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4738d4
mov byte [ebp - 0x49], 0
jmp 0x4738e7
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x170]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
movzx ecx, byte [ebp - 0x49]
test ecx, ecx
je 0x473a45
lea edx, [ebp - 0x174]
push edx
lea eax, [ebp - 0x170]
push eax
mov ecx, dword [0x4b4da0]
call fcn.004163a0
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x473a40
mov byte [ebp - 0x49], 0
push 0
push 0x8000000
push 3
push 0
push 0
push 0x80000000
lea ecx, [ebp - 0x170]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0xffffffff
jne 0x4739c5
push str._run_
lea edx, [ebp - 0x170]
push edx
call fcn.004150c0
add esp, 8
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x4739be
mov eax, dword [ebp - 0x180]
add eax, 5
push eax
lea ecx, [ebp - 0x280]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
push 0
push 0x8000000
push 3
push 0
push 0
push 0x80000000
lea edx, [ebp - 0x280]
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0xffffffff
jne 0x4739bc
xor eax, eax
jmp 0x473c46
jmp 0x4739c5
xor eax, eax
jmp 0x473c46
push 0
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
push ecx
call fcn.0049cb7c
add esp, 4
mov dword [ebp - 0x28c], eax
mov edx, dword [ebp - 0x28c]
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x6c], 0
jne 0x473a12
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x473c46
push 0
lea ecx, [ebp - 0x174]
push ecx
mov edx, dword [ebp - 0x178]
push edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x17c]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x473af5
push 0
push 0x8000000
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x288], 0xffffffff
jne 0x473a7a
xor eax, eax
jmp 0x473c46
push 0
mov ecx, dword [ebp - 0x288]
push ecx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x284], eax
mov edx, dword [ebp - 0x284]
push edx
call fcn.0049cb7c
add esp, 4
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x473ac7
mov ecx, dword [ebp - 0x288]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x473c46
push 0
lea edx, [ebp - 0x174]
push edx
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x288]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp - 0x288]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x174]
push edx
mov eax, dword [ebp - 0x6c]
push eax
call sub.d3dx9_40.dll_D3DXGetImageInfoFromFileInMemory
test eax, eax
jge 0x473b2c
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x294], ecx
mov edx, dword [ebp - 0x294]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x473c46
push 0x14
call fcn.0049cc04
add esp, 4
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 4], eax
push 0x14
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, dword [ebp - 4]
mov ax, word [ebp - 0x68]
mov word [edx + 0xc], ax
mov ecx, dword [ebp - 4]
mov dx, word [ebp - 0x64]
mov word [ecx + 0xe], dx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 8], ecx
lea edx, [ebp - 0x170]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, 1
push eax
call fcn.0049cb7c
add esp, 4
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x29c]
mov dword [eax], ecx
lea edx, [ebp - 0x170]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
mov edx, dword [ebp - 4]
add edx, 4
push edx
push 0
lea eax, [ebp - 0x68]
push eax
push 0
push 2
push 2
push 1
push 0
push 0
push 1
push 0xfffffffffffffffe
push 0xfffffffffffffffe
mov ecx, dword [ebp - 0x174]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [0x4b5080]
push eax
call sub.d3dx9_40.dll_D3DXCreateTextureFromFileInMemoryEx
neg eax
sbb eax, eax
add eax, 1
jns 0x473c12
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x2a0], ecx
mov edx, dword [ebp - 0x2a0]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
movzx eax, byte [ebp - 0x49]
test eax, eax
je 0x473c2b
mov ecx, dword [ebp - 0x6c]
push ecx
mov ecx, dword [0x4b4da0]
call fcn.00416740
jmp 0x473c43
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x2a4], edx
mov eax, dword [ebp - 0x2a4]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049cb8e
mov esp, ebp
pop ebp
ret 4