Function at 0x465d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x48c573
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4a7008]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov eax, dword [0x4a7008]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
xor edi, edi
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
movdqa xmmword [esp + 0x74], xmm0
movq qword [esp + 0x84], xmm0
mov dword [esp + 0x8c], 0
mov byte [esp + 0x17], 0
cmp dword [esi + 0x2c], edi
je 0x465e68
push 2
push ecx
push 0x497640
mov ecx, eax
call fcn.00417fb0
mov ecx, dword [esp + 0x24]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004151e0
lea eax, [esp + 0x28]
mov dword [esp + 0xb0], edi
mov ecx, dword [esi + 0x2c]
push eax
call fcn.0046eda0
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x465e2a
mov eax, dword [esi + 0x2c]
push edi
push dword [ecx + 0x180]
mov byte [esp + 0x1f], 1
push dword [eax + 0xc]
call fcn.00471617
mov esi, dword [esp + 0x24]
add esp, 0xc
mov esi, dword [esi + 0x184]
push esi
call fcn.004707b2
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
mov ecx, dword [ecx + 0x2c]
push dword [ecx + 0xc]
push 1
push esi
push edi
call fcn.004714dc
add esp, 0x10
mov dword [esp + 0x18], edi
jmp 0x465e36
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x3c], 0x10
jb 0x465e49
push dword [esp + 0x28]
call fcn.0046fdb4
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jmp 0x465e74
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
xorps xmm0, xmm0
mov dword [esp + 0x40], vtable.GBufferedFile.0
movdqu xmmword [esp + 0x44], xmm0
mov byte [esp + 0x54], 0
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
cmp byte [esp + 0x17], 0
mov dword [esp + 0xb0], 1
jne 0x465ee6
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004034d0
lea ecx, [esp + 0x58]
call fcn.0046e6f0
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x18], ecx
mov eax, dword [0x4d1b38]
test al, 1
jne 0x465f21
push 0x1f8
or eax, 1
push 0
push 0x4d1650
mov dword [0x4d1b38], eax
call fcn.00479b40
add esp, 0xc
call fcn.0045fc90
push 0x48cbe0
call fcn.0046fb6c
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esp + 0x20]
add eax, 4
push eax
push 0
lea eax, [esp + 0x7c]
push eax
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0
push 0
push dword [ebp + 8]
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ecx
push dword [0x4d1660]
call dword [sym.imp.d3dx9_41.dll_D3DXCreateTextureFromFileInMemoryEx]
mov esi, eax
test esi, esi
jns 0x465fa3
mov ecx, dword [0x4d1b38]
test cl, 1
jne 0x465f91
push 0x1f8
or ecx, 1
push 0
push 0x4d1650
mov dword [0x4d1b38], ecx
call fcn.00479b40
add esp, 0xc
call fcn.0045fc90
push 0x48cbe0
call fcn.0046fb6c
add esp, 4
push str.CreateTextureD3DX
push esi
call fcn.00460040
mov byte [esp + 0x17], 0
jmp 0x465fc7
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x74]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x24], eax
test edi, edi
je 0x465fc2
push edi
call fcn.0047077a
add esp, 4
mov byte [esp + 0x17], 1
push dword [esp + 0x44]
mov dword [esp + 0x44], vtable.GBufferedFile.0
call fcn.0047077a
add esp, 4
cmp dword [esp + 0x6c], 0x10
jb 0x465fee
push dword [esp + 0x58]
call fcn.0046fdb4
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0046f27e
mov esp, ebp
pop ebp
ret 0xc