Function at 0x51a6d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d49e6
mov eax, dword fs:[0]
push eax
sub esp, 0x5e0
mov eax, dword [0x6229a0]
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 esi, ecx
mov dword [ebp - 0x5d4], esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5dc], esi
mov dword [ebp - 0x5d8], eax
mov dword [ebp - 0x5c8], edi
call fcn.00510340
cmp byte [esi + 0xa8], 0
mov dword [esi + 0xac], 0
je 0x51a9a4
mov edx, dword [0x668248]
mov eax, closesocket
add edx, 0x6c
mov dword [ebp - 0x5c4], edx
mov ecx, dword [edx + 0x10]
sub eax, ecx
mov dword [ebp - 0x5cc], ecx
cmp eax, 9
jb 0x51b384
cmp dword [edx + 0x14], 0x10
jb 0x51a773
mov edx, dword [edx]
mov dword [ebp - 0x5c4], edx
lea eax, [ecx + 9]
mov dword [ebp - 0x1c], 0
mov edi, 0xf
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x5d0], eax
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x5c0], ecx
movups xmmword [ebp - 0x2c], xmm0
cmp eax, edi
jbe 0x51a822
mov edi, eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x51a7cd
mov eax, closesocket
mov edi, closesocket
push eax
call fcn.00402b50
mov edx, dword [ebp - 0x5c4]
add esp, 4
mov ecx, eax
jmp 0x51a813
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x51a7f4
push eax
call fcn.00402b50
mov edx, dword [ebp - 0x5c4]
add esp, 4
mov ecx, eax
jmp 0x51a813
test eax, eax
je 0x51a811
push eax
call fcn.0059b742
mov edx, dword [ebp - 0x5c4]
add esp, 4
mov ecx, eax
mov dword [ebp - 0x5c0], eax
jmp 0x51a819
xor ecx, ecx
mov dword [ebp - 0x5c0], ecx
mov eax, dword [ebp - 0x5d0]
mov dword [ebp - 0x2c], ecx
movq xmm0, qword [str.SOFTWARE_]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x5cc]
movq qword [ecx], xmm0
mov al, byte [0x5e60c4]
push edi
mov byte [ecx + 8], al
lea eax, [ecx + 9]
push edx
push eax
call fcn.0059d280
mov eax, dword [ebp - 0x5c0]
mov byte [eax + edi + 9], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004f5ac0
add esp, 0x14
push 7
push str.Test3D
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00404bf0
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0
movups xmm0, xmmword [eax]
mov byte [ebp - 4], 0
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x51a8f0
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x51a8e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51b389
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x51a93d
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x51a933
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51b389
push ecx
push edx
call fcn.0059b718
add esp, 8
cmp dword [ebp - 0x48], 0x10
lea eax, [esi + 0x1c]
push 0
push eax
push 0
push 0xf003f
push 0
push 0x5d9560
lea ecx, [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x5c]
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x51a99e
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x51a994
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51b38e
push ecx
push edx
call fcn.0059b718
add esp, 8
mov edi, dword [ebp - 0x5c8]
mov dword [ebp - 4], 2
test edi, edi
jne 0x51aa64
push str.DirectDrawCreateEx
push dword [0x66825c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
jne 0x51aa3f
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
push 0x20
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
call fcn.0059b742
movups xmm0, xmmword [str.No_DirectDrawCreateEx]
mov ecx, eax
mov dword [ebp - 0x1c], 0x15
add esp, 4
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], 0x1f
movups xmmword [ecx], xmm0
mov edx, dword [0x5e60d8]
mov dword [ecx + 0x10], edx
mov al, byte [0x5e60dc]
mov byte [ecx + 0x14], al
mov byte [ecx + 0x15], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.00516af0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x5b9], al
call fcn.00402f60
mov al, byte [ebp - 0x5b9]
jmp 0x51b20b
push 0
lea eax, [esi + 4]
push 0x5e57b4
push eax
push 0
mov dword [ebp - 0x5c8], eax
call ecx
push str.DirectDrawCreateEx
push eax
call fcn.0050fe70
add esp, 8
jmp 0x51aa75
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea eax, [esi + 4]
mov dword [eax], edi
mov dword [ebp - 0x5c8], eax
lea edi, [esi + 0x48]
lea ecx, [esi + 0x30]
push edi
lea eax, [esi + 0x20]
push ecx
push eax
call fcn.00519690
add esp, 0xc
test al, al
jne 0x51aafb
mov eax, dword [esi + 4]
lea edx, [ebp - 0x5b8]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x6c]
push str.GetDeviceIdentifier
push eax
call fcn.0050fe70
movups xmm0, xmmword [ebp - 0x1a0]
lea ecx, [ebp - 0x5b8]
add esp, 8
lea edx, [ecx + 1]
movups xmmword [esi + 0x20], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51aac1
sub ecx, edx
lea eax, [ebp - 0x5b8]
push ecx
push eax
lea ecx, [esi + 0x30]
call fcn.0040c5a0
lea ecx, [ebp - 0x3b8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51aae3
sub ecx, edx
lea eax, [ebp - 0x3b8]
push ecx
push eax
mov ecx, edi
call fcn.0040c5a0
xorps xmm0, xmm0
movups xmmword [ebp - 0x54], xmm0
push 0
mov dword [ebp - 0x54], 0x4000
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call esi
push 0xa
push edi
mov dword [ebp - 0x5d0], eax
call esi
push 0xc
push edi
mov dword [ebp - 0x5cc], eax
call esi
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x5c8]
mov ecx, dword [eax]
lea eax, [ebp - 0x5e8]
push eax
lea eax, [ebp - 0x5c0]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x54]
push eax
push ecx
call dword [edx + 0x5c]
test eax, eax
jns 0x51abb9
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004e59e0
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x51ab7c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x74]
push str.GetAvailableVidMem_failed:__s
push eax
call fcn.004f8210
add esp, 0xc
mov esi, dword [ebp - 0x5d4]
mov ecx, esi
push eax
mov byte [ebp - 4], 5
call fcn.00532e80
lea ecx, [ebp - 0x74]
call fcn.00402f60
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402f60
jmp 0x51ad08
mov eax, esi
mov esi, dword [ebp - 0x5d4]
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebp - 0x5cc]
imul eax, dword [ebp - 0x5d0]
add eax, dword [ebp - 0x5c0]
shr eax, 0x14
mov dword [ebp - 0x5c0], eax
cmp eax, dword [esi + 0xa0]
jae 0x51ac6e
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
push 0x20
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x7c], 0xf
call fcn.0059b742
movups xmm0, xmmword [str.Not_enough_video_memory.]
add esp, 4
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x80], 0x18
movups xmmword [eax], xmm0
mov dword [ebp - 0x7c], 0x1f
movq xmm0, qword [0x5e6124]
movq qword [eax + 0x10], xmm0
mov byte [eax + 0x18], 0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.00516af0
lea ecx, [ebp - 0x90]
mov byte [ebp - 0x5b9], al
call fcn.00402f60
mov al, byte [ebp - 0x5b9]
jmp 0x51b20b
cmp eax, dword [esi + 0xa4]
jae 0x51ad08
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0x20
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
call fcn.0059b742
movups xmm0, xmmword [str.Low_video_memory.]
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x11
movups xmmword [eax], xmm0
mov cl, byte [0x5e6140]
mov byte [eax + 0x10], cl
mov dword [ebp - 0x18], 0x1f
mov byte [eax + 0x11], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
mov ecx, esi
call fcn.00532e80
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x51ad08
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x51acfe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51b398
push ecx
push edx
call fcn.0059b718
add esp, 8
cmp byte [esi + 0xa8], 0
je 0x51ad2a
mov ecx, esi
call fcn.0050ff30
test al, al
je 0x51ad23
xor al, al
jmp 0x51b20b
mov byte [esi + 0xa9], 1
push 0
push 0x5d9560
lea ecx, [esi + 0x70]
call fcn.0040c5a0
push 0
push 0x5d9560
lea ecx, [esi + 0x88]
call fcn.0040c5a0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040c9d0
cmp dword [ebp - 0x30], 0x10
lea edi, [ebp - 0x44]
mov byte [ebp - 4], 8
cmovae edi, dword [ebp - 0x44]
cmp dword [ebp - 0x34], 0
jbe 0x51add0
push 0x100
lea eax, [ebp - 0x288]
push 0
push eax
call fcn.0059d800
add esp, 0xc
mov ecx, 0x5e6144
nop word [eax + eax]
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x288], 1
cmp ecx, 0x5e6146
jne 0x51ad90
mov edx, dword [ebp - 0x34]
mov ecx, edi
add edx, edi
cmp edi, edx
jae 0x51add0
nop
movzx eax, byte [ecx]
mov al, byte [ebp + eax - 0x288]
test al, al
jne 0x51adc5
inc ecx
cmp ecx, edx
jb 0x51adb0
jmp 0x51add0
sub ecx, edi
cmp ecx, 0xffffffff
jne 0x51aef9
push 0x104
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x51aef9
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51ae08
sub ecx, edx
lea eax, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402b80
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004e1cf0
add esp, 0xc
mov ecx, eax
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
mov byte [ebp - 4], 0xa
call fcn.00404bf0
lea ecx, [ebp - 0x44]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x74]
push eax
movq qword [ebp - 0x64], xmm0
call fcn.004e0af0
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x51aeb6
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x51aeac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51b393
push ecx
push edx
call fcn.0059b718
add esp, 8
lea ecx, [ebp - 0x90]
call fcn.00402f60
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 8
cmp ecx, 0x10
jb 0x51aef9
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x51aeef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51b393
push ecx
push edx
call fcn.0059b718
add esp, 8
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
xorps xmm0, xmm0
push 0
push 3
push 0
push 1
push closesocket
push eax
movlpd qword [ebp - 0x5e4], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x51af68
lea eax, [ebp - 0x5e4]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x51af61
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x5e4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x51af61
movzx eax, word [ebp - 0x24]
mov dword [esi + 0xac], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x5c], 0x10
lea edi, [esi + 0x48]
mov eax, edi
jb 0x51af75
mov eax, dword [edi]
push eax
mov ecx, esi
call fcn.0051cb60
test al, al
jne 0x51afb9
cmp dword [edi + 0x14], 0x10
jb 0x51af89
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x90]
push str.Unsupported_video_card:__s
push eax
call fcn.004f8210
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.00532e80
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 8
call fcn.00402f60
mov ecx, dword [esi + 4]
lea edx, [esi + 0x14]
push edx
push 0x5e5784
push ecx
mov eax, dword [ecx]
call dword [eax]
push str.QueryInterface_IID_IDirect3D7
push eax
call fcn.0050fe70
mov eax, dword [esi + 4]
add esp, 8
mov ecx, dword [eax]
push 8
push dword [ebp - 0x5d8]
push eax
call dword [ecx + 0x50]
push str.SetCooperativeLevel
push eax
call fcn.0050fe70
add esp, 8
lea eax, [ebp - 0x188]
push 0x7c
push 0
push eax
call fcn.0059d800
mov ecx, dword [esi + 4]
lea edx, [esi + 8]
add esp, 0xc
mov dword [ebp - 0x188], 0x7c
mov dword [ebp - 0x184], 7
mov dword [ebp - 0x120], 0x2040
mov dword [ebp - 0x17c], 0x64
push 0
push edx
mov dword [ebp - 0x180], 0x64
lea edx, [ebp - 0x188]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x18]
push str.CreateSurface__Primary_
push eax
call fcn.0050fe70
add esp, 8
lea ecx, [esi + 0x60]
push dword [ebp - 0x180]
push dword [ebp - 0x17c]
call fcn.005122b0
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x18]
push edx
push dword [esi + 8]
mov eax, dword [ecx]
push 0x5e5794
push ecx
call dword [eax + 0x10]
push str.CreateDevice
push eax
call fcn.0050fe70
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x5c4]
add esp, 8
mov dword [ebp - 0x5c4], 0
mov ecx, dword [eax]
push edx
push 0x52a420
push eax
call dword [ecx + 0x10]
push str.EnumTextureFormats
push eax
call fcn.0050fe70
add esp, 8
test byte [ebp - 0x5c4], 1
jne 0x51b22d
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0x30
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
call fcn.0059b742
movups xmm0, xmmword [str.A8R8G8B8_texture_format_not_supported.]
mov ecx, eax
mov dword [ebp - 0x1c], 0x26
add esp, 4
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], 0x2f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x5e61c4]
movups xmmword [ecx + 0x10], xmm0
mov eax, dword [0x5e61d4]
mov dword [ecx + 0x20], eax
mov ax, word [0x5e61d8]
mov word [ecx + 0x24], ax
mov byte [ecx + 0x26], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
push eax
mov ecx, esi
call fcn.00532e80
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00402f60
test byte [ebp - 0x5c4], 2
jne 0x51b229
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0x40
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
call fcn.0059b742
movups xmm0, xmmword [str.A4R4G4B4_and_A8R8G8B8_texture_formats_not_supported.]
mov ecx, eax
mov dword [ebp - 0x1c], 0x34
add esp, 4
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], 0x3f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x5e61ec]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x5e61fc]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [0x5e620c]
mov dword [ecx + 0x30], eax
mov byte [ecx + 0x34], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
push eax
mov ecx, esi
call fcn.00516af0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x5b9], al
cmp ecx, 0x10
jb 0x51b1fd
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x51b1f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51b398
push ecx
push edx
call fcn.0059b718
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.00402f60
mov al, byte [ebp - 0x5b9]
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.0059b734
mov esp, ebp
pop ebp
ret 8
xor al, al
jmp 0x51b22f
mov al, 1
push 0x7c
mov byte [ebp - 0x5b9], al
mov byte [0x667232], al
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0059d800
add esp, 0xc
mov dword [ebp - 0x10c], 0x7c
cmp byte [ebp - 0x5b9], 0
mov dword [ebp - 0x108], 0x1007
mov dword [ebp - 0xa4], 0x1000
mov dword [ebp - 0xa0], 0x10
mov dword [ebp - 0x100], 0x40
mov dword [ebp - 0x104], 0x40
mov dword [ebp - 0xc4], 0x20
mov dword [ebp - 0xc0], 0x41
je 0x51b2da
mov dword [ebp - 0xb8], 0x20
mov dword [ebp - 0xa8], 0xff000000
mov dword [ebp - 0xb4], 0xff0000
mov dword [ebp - 0xb0], 0xff00
mov dword [ebp - 0xac], 0xff
jmp 0x51b30c
mov dword [ebp - 0xb8], 0x10
mov dword [ebp - 0xa8], 0xf000
mov dword [ebp - 0xb4], 0xf00
mov dword [ebp - 0xb0], 0xf0
mov dword [ebp - 0xac], 0xf
mov ecx, dword [esi + 4]
lea eax, [esi + 0xc]
push 0
push eax
lea eax, [ebp - 0x10c]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x18]
push str.CreateSurface__TextureSurface1_
push eax
call fcn.0050fe70
mov ecx, dword [esi + 4]
lea eax, [esi + 0x10]
add esp, 8
mov edx, dword [ecx]
push 0
push eax
lea eax, [ebp - 0x10c]
push eax
push ecx
call dword [edx + 0x18]
push str.CreateSurface__TextureSurfacd2_
push eax
call fcn.0050fe70
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.00402f60
mov al, 1
jmp 0x51b20b
call fcn.00404b20
call fcn.005a17d1
call fcn.005a17d1
call fcn.005a17d1
call fcn.005a17d1
int3