Function at 0x46d810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7fc2
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xad0
mov eax, dword [0x654c54]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xa40], ecx
mov ecx, dword [ebp - 0xa40]
call fcn.0046e600
mov eax, dword [ebp - 0xa40]
mov dword [eax + 0xbc], 0
mov ecx, dword [ebp - 0xa40]
movzx edx, byte [ecx + 0xb8]
test edx, edx
je 0x46d973
mov eax, dword [0x6a1494]
add eax, 0x7c
push eax
push str.SOFTWARE_
lea ecx, [ebp - 0x6f8]
push ecx
call fcn.0040f440
add esp, 0xc
mov dword [ebp - 0xa44], eax
mov edx, dword [ebp - 0xa44]
mov dword [ebp - 0xa48], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xa48]
push eax
lea ecx, [ebp - 0x714]
push ecx
call fcn.00528860
add esp, 8
mov dword [ebp - 0xa4c], eax
mov edx, dword [ebp - 0xa4c]
mov dword [ebp - 0xa50], edx
mov byte [ebp - 4], 1
push str.Test3D
mov eax, dword [ebp - 0xa50]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0040f1e0
add esp, 0xc
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x714]
call fcn.004079f0
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x6f8]
call fcn.004079f0
cmp dword [ebp - 0x18], 0x10
jb 0x46d929
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xa54], edx
jmp 0x46d932
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xa54], eax
push 0
mov ecx, dword [ebp - 0xa40]
add ecx, 0x1c
push ecx
push 0
push 0xf003f
push 0
push 0x609000
push 0
mov edx, dword [ebp - 0xa54]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExA]
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004079f0
mov dword [ebp - 4], 5
cmp dword [ebp + 0xc], 0
jne 0x46da35
push 0x610f6c
mov eax, dword [0x6a1498]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jne 0x46da00
push str.No_DirectDrawCreateEx
lea ecx, [ebp - 0x734]
call fcn.0040dbc0
mov dword [ebp - 0xa58], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x734]
push ecx
mov ecx, dword [ebp - 0xa40]
call fcn.0046e720
mov byte [ebp - 0xa59], al
mov dl, byte [ebp - 0xa59]
mov byte [ebp - 0x715], dl
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x734]
call fcn.004079f0
mov al, byte [ebp - 0x715]
jmp 0x46e5b1
push 0
push 0x610f1c
mov eax, dword [ebp - 0xa40]
add eax, 4
push eax
push 0
call dword [ebp - 0x18c]
mov dword [ebp - 0xa60], eax
push 0x610f6c
mov ecx, dword [ebp - 0xa60]
push ecx
call fcn.0046e780
add esp, 8
jmp 0x46da4f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
call edx
mov eax, dword [ebp - 0xa40]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xa40]
add edx, 0x4c
push edx
mov eax, dword [ebp - 0xa40]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0xa40]
add ecx, 0x20
push ecx
call fcn.004bcb60
add esp, 0xc
mov byte [ebp - 0xa61], al
movzx edx, byte [ebp - 0xa61]
test edx, edx
jne 0x46db55
push 0
lea eax, [ebp - 0x5c0]
push eax
mov ecx, dword [ebp - 0xa40]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0xa40]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
call eax
mov dword [ebp - 0xa68], eax
push str.GetDeviceIdentifier
mov ecx, dword [ebp - 0xa68]
push ecx
call fcn.0046e780
add esp, 8
mov edx, dword [ebp - 0xa40]
add edx, 0x20
mov eax, dword [ebp - 0x1a8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1a4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1a0]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x19c]
mov dword [edx + 0xc], ecx
lea edx, [ebp - 0x5c0]
push edx
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x878], eax
mov eax, dword [ebp - 0x878]
push eax
lea ecx, [ebp - 0x5c0]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x30
call fcn.0040b080
lea edx, [ebp - 0x3c0]
push edx
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x888], eax
mov eax, dword [ebp - 0x888]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x4c
call fcn.0040b080
push 0x10
push 0
lea edx, [ebp - 0xc8]
push edx
call fcn.005ccbd0
add esp, 0xc
mov dword [ebp - 0xc8], 0x4000
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x188], eax
push 8
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.GDI32.DLL_GetDeviceCaps]
mov dword [ebp - 0xcc], eax
push 0xa
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.GDI32.DLL_GetDeviceCaps]
mov dword [ebp - 0x100], eax
push 0xc
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.GDI32.DLL_GetDeviceCaps]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x188]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xa40]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0xa40]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
mov dword [ebp - 0xa6c], eax
mov ecx, dword [ebp - 0xa6c]
mov dword [ebp - 0xd4], ecx
cmp dword [ebp - 0xd4], 0
jge 0x46dce2
mov edx, dword [ebp - 0xd4]
push edx
lea eax, [ebp - 0x750]
push eax
call fcn.005238f0
add esp, 8
mov dword [ebp - 0xa70], eax
mov ecx, dword [ebp - 0xa70]
mov dword [ebp - 0x898], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x898]
cmp dword [edx + 0x18], 0x10
jb 0x46dc65
mov eax, dword [ebp - 0x898]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xa74], ecx
jmp 0x46dc74
mov edx, dword [ebp - 0x898]
add edx, 4
mov dword [ebp - 0xa74], edx
mov eax, dword [ebp - 0xa74]
push eax
push str.GetAvailableVidMem_failed:__s
lea ecx, [ebp - 0x76c]
push ecx
call fcn.00528d70
add esp, 0xc
mov dword [ebp - 0xa78], eax
mov edx, dword [ebp - 0xa78]
mov dword [ebp - 0xa7c], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xa7c]
push eax
mov ecx, dword [ebp - 0xa40]
call fcn.0046e750
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x76c]
call fcn.004079f0
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x750]
call fcn.004079f0
jmp 0x46dddf
mov eax, dword [ebp - 0x184]
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebp - 0xcc]
imul eax, dword [ebp - 0x100]
add eax, dword [ebp - 0xb8]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
shr ecx, 0x14
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xa40]
mov eax, dword [ebp - 0xb8]
cmp eax, dword [edx + 0xb0]
jae 0x46dd8c
push str.Not_enough_video_memory.
lea ecx, [ebp - 0x78c]
call fcn.0040dbc0
mov dword [ebp - 0xa80], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x78c]
push ecx
mov ecx, dword [ebp - 0xa40]
call fcn.0046e720
mov byte [ebp - 0xa81], al
mov dl, byte [ebp - 0xa81]
mov byte [ebp - 0x76d], dl
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x78c]
call fcn.004079f0
mov al, byte [ebp - 0x76d]
jmp 0x46e5b1
mov eax, dword [ebp - 0xa40]
mov ecx, dword [ebp - 0xb8]
cmp ecx, dword [eax + 0xb4]
jae 0x46dddf
push str.Low_video_memory.
lea ecx, [ebp - 0x7a8]
call fcn.0040dbc0
mov dword [ebp - 0xa88], eax
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x7a8]
push edx
mov ecx, dword [ebp - 0xa40]
call fcn.0046e750
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x7a8]
call fcn.004079f0
mov eax, dword [ebp - 0xa40]
movzx ecx, byte [eax + 0xb8]
test ecx, ecx
je 0x46de20
mov ecx, dword [ebp - 0xa40]
call fcn.0046d0c0
mov byte [ebp - 0xa89], al
movzx edx, byte [ebp - 0xa89]
test edx, edx
je 0x46de13
xor al, al
jmp 0x46e5b1
mov eax, dword [ebp - 0xa40]
mov byte [eax + 0xb9], 1
push 0x609000
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x8f4], eax
mov ecx, dword [ebp - 0x8f4]
push ecx
push 0x609000
mov ecx, dword [ebp - 0xa40]
add ecx, 0x78
call fcn.0040b080
push 0x609000
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x904], eax
mov edx, dword [ebp - 0x904]
push edx
push 0x609000
mov ecx, dword [ebp - 0xa40]
add ecx, 0x94
call fcn.0040b080
push 0
push 0
lea ecx, [ebp - 0xf4]
call fcn.004079f0
mov eax, dword [0x611c1c]
push eax
push 0
mov ecx, dword [ebp - 0xa40]
add ecx, 0x30
push ecx
lea ecx, [ebp - 0xf4]
call fcn.0040aae0
mov byte [ebp - 4], 0xb
push 0x6117a0
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x924], eax
mov edx, dword [ebp - 0x924]
push edx
push 0
push 0x6117a0
lea ecx, [ebp - 0xf4]
call fcn.004bfee0
mov dword [ebp - 0xa90], eax
mov eax, dword [ebp - 0xa90]
mov dword [ebp - 0x930], eax
mov ecx, dword [ebp - 0x930]
cmp ecx, dword [0x611c1c]
jne 0x46dfe8
push 0x104
lea edx, [ebp - 0x6c8]
push edx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x46dfe8
lea eax, [ebp - 0x6c8]
push eax
lea ecx, [ebp - 0x7c4]
call fcn.0040dbc0
mov dword [ebp - 0xa94], eax
mov byte [ebp - 4], 0xc
push 1
lea ecx, [ebp - 0x7c4]
push ecx
lea edx, [ebp - 0x7e0]
push edx
call fcn.00528970
add esp, 0xc
mov dword [ebp - 0xa98], eax
mov eax, dword [ebp - 0xa98]
mov dword [ebp - 0xa9c], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xf4]
push ecx
mov edx, dword [ebp - 0xa9c]
push edx
lea eax, [ebp - 0x7fc]
push eax
call fcn.0040f350
add esp, 0xc
mov dword [ebp - 0xaa0], eax
mov ecx, dword [ebp - 0xaa0]
mov dword [ebp - 0x950], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [0x611c1c]
push edx
push 0
mov eax, dword [ebp - 0x950]
push eax
lea ecx, [ebp - 0xf4]
call fcn.0040aae0
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x7fc]
call fcn.004079f0
mov byte [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0x7e0]
call fcn.004079f0
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x7c4]
call fcn.004079f0
push 8
push 0
lea ecx, [ebp - 0xfc]
push ecx
call fcn.005ccbd0
add esp, 0xc
cmp dword [ebp - 0xdc], 0x10
jb 0x46e012
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xaa4], edx
jmp 0x46e01e
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xaa4], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp - 0xaa4]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0xffffffff
je 0x46e09d
lea edx, [ebp - 0xfc]
push edx
push 0
push 0
mov eax, dword [ebp - 0xd0]
push eax
call dword [sym.imp.kernel32.dll_GetFileTime]
test eax, eax
je 0x46e090
lea ecx, [ebp - 0x6d8]
push ecx
lea edx, [ebp - 0xfc]
push edx
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
test eax, eax
je 0x46e090
movzx eax, word [ebp - 0x6d8]
mov ecx, dword [ebp - 0xa40]
mov dword [ecx + 0xbc], eax
mov edx, dword [ebp - 0xd0]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0xa40]
add eax, 0x4c
mov dword [ebp - 0x984], eax
mov ecx, dword [ebp - 0x984]
cmp dword [ecx + 0x18], 0x10
jb 0x46e0c9
mov edx, dword [ebp - 0x984]
mov eax, dword [edx + 4]
mov dword [ebp - 0xaa8], eax
jmp 0x46e0d8
mov ecx, dword [ebp - 0x984]
add ecx, 4
mov dword [ebp - 0xaa8], ecx
mov edx, dword [ebp - 0xaa8]
push edx
mov ecx, dword [ebp - 0xa40]
call fcn.0046d710
mov byte [ebp - 0xaa9], al
movzx eax, byte [ebp - 0xaa9]
test eax, eax
jne 0x46e190
mov ecx, dword [ebp - 0xa40]
add ecx, 0x4c
mov dword [ebp - 0x988], ecx
mov edx, dword [ebp - 0x988]
cmp dword [edx + 0x18], 0x10
jb 0x46e12b
mov eax, dword [ebp - 0x988]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xab0], ecx
jmp 0x46e13a
mov edx, dword [ebp - 0x988]
add edx, 4
mov dword [ebp - 0xab0], edx
mov eax, dword [ebp - 0xab0]
push eax
push str.Unsupported_video_card:__s
lea ecx, [ebp - 0x818]
push ecx
call fcn.00528d70
add esp, 0xc
mov dword [ebp - 0xab4], eax
mov edx, dword [ebp - 0xab4]
mov dword [ebp - 0xab8], edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0xab8]
push eax
mov ecx, dword [ebp - 0xa40]
call fcn.0046e750
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x818]
call fcn.004079f0
mov ecx, dword [ebp - 0xa40]
add ecx, 0x14
push ecx
push 0x610f4c
mov edx, dword [ebp - 0xa40]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xa40]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov ecx, dword [eax]
call ecx
mov dword [ebp - 0xabc], eax
push str.QueryInterface_IID_IDirect3D7
mov edx, dword [ebp - 0xabc]
push edx
call fcn.0046e780
add esp, 8
push 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xa40]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0xa40]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov dword [ebp - 0xac0], eax
push str.SetCooperativeLevel
mov ecx, dword [ebp - 0xac0]
push ecx
call fcn.0046e780
add esp, 8
push 0x7c
push 0
lea edx, [ebp - 0x180]
push edx
call fcn.005ccbd0
add esp, 0xc
mov dword [ebp - 0x180], 0x7c
mov dword [ebp - 0x17c], 7
mov dword [ebp - 0x118], 0x2040
mov dword [ebp - 0x174], 0x64
mov dword [ebp - 0x178], 0x64
push 0
mov eax, dword [ebp - 0xa40]
add eax, 8
push eax
lea ecx, [ebp - 0x180]
push ecx
mov edx, dword [ebp - 0xa40]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xa40]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
call ecx
mov dword [ebp - 0xac4], eax
push str.CreateSurface__Primary_
mov edx, dword [ebp - 0xac4]
push edx
call fcn.0046e780
add esp, 8
mov eax, dword [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x174]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x68
call fcn.0046c260
mov edx, dword [ebp - 0xa40]
add edx, 0x18
push edx
mov eax, dword [ebp - 0xa40]
mov ecx, dword [eax + 8]
push ecx
push 0x610f5c
mov edx, dword [ebp - 0xa40]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0xa40]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
call ecx
mov dword [ebp - 0xac8], eax
push str.CreateDevice
mov edx, dword [ebp - 0xac8]
push edx
call fcn.0046e780
add esp, 8
mov dword [ebp - 0xd8], 0
lea eax, [ebp - 0xd8]
push eax
push 0x46e5d0
mov ecx, dword [ebp - 0xa40]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0xa40]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0xacc], eax
push str.EnumTextureFormats
mov ecx, dword [ebp - 0xacc]
push ecx
call fcn.0046e780
add esp, 8
mov edx, dword [ebp - 0xd8]
and edx, 1
jne 0x46e41c
push str.A8R8G8B8_texture_format_not_supported.
lea ecx, [ebp - 0x834]
call fcn.0040dbc0
mov dword [ebp - 0xad0], eax
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x834]
push eax
mov ecx, dword [ebp - 0xa40]
call fcn.0046e750
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x834]
call fcn.004079f0
mov ecx, dword [ebp - 0xd8]
and ecx, 2
jne 0x46e413
push str.A4R4G4B4_and_A8R8G8B8_texture_formats_not_supported.
lea ecx, [ebp - 0x854]
call fcn.0040dbc0
mov dword [ebp - 0xad4], eax
mov byte [ebp - 4], 0x11
lea edx, [ebp - 0x854]
push edx
mov ecx, dword [ebp - 0xa40]
call fcn.0046e720
mov byte [ebp - 0xad5], al
mov al, byte [ebp - 0xad5]
mov byte [ebp - 0x835], al
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x854]
call fcn.004079f0
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0xf4]
call fcn.004079f0
mov al, byte [ebp - 0x835]
jmp 0x46e5b1
mov byte [0x66c3e2], 0
jmp 0x46e423
mov byte [0x66c3e2], 1
push 0x7c
push 0
lea ecx, [ebp - 0xb0]
push ecx
call fcn.005ccbd0
add esp, 0xc
mov dword [ebp - 0xb0], 0x7c
mov dword [ebp - 0xac], 0x1007
mov dword [ebp - 0x48], 0x1000
mov dword [ebp - 0x44], 0x10
mov dword [ebp - 0xa4], 0x40
mov dword [ebp - 0xa8], 0x40
mov dword [ebp - 0x68], 0x20
mov dword [ebp - 0x64], 0x41
movzx edx, byte [0x66c3e2]
test edx, edx
je 0x46e4aa
mov dword [ebp - 0x5c], 0x20
mov dword [ebp - 0x4c], 0xff000000
mov dword [ebp - 0x58], 0xff0000
mov dword [ebp - 0x54], 0xff00
mov dword [ebp - 0x50], 0xff
jmp 0x46e4cd
mov dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x4c], 0xf000
mov dword [ebp - 0x58], 0xf00
mov dword [ebp - 0x54], 0xf0
mov dword [ebp - 0x50], 0xf
push 0
mov eax, dword [ebp - 0xa40]
add eax, 0xc
push eax
lea ecx, [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xa40]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xa40]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
call ecx
mov dword [ebp - 0xadc], eax
push str.CreateSurface__TextureSurface1_
mov edx, dword [ebp - 0xadc]
push edx
call fcn.0046e780
add esp, 8
push 0
mov eax, dword [ebp - 0xa40]
add eax, 0x10
push eax
lea ecx, [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xa40]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xa40]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
call ecx
mov dword [ebp - 0xae0], eax
push str.CreateSurface__TextureSurfacd2_
mov edx, dword [ebp - 0xae0]
push edx
call fcn.0046e780
add esp, 8
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0xf4]
call fcn.004079f0
jmp 0x46e59e
mov dword [ebp - 4], 0xffffffff
jmp 0x46e5af
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005cbcb1
mov esp, ebp
pop ebp
ret 8