Function at 0x11041130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1e4
push ebx
push ebp
push esi
push edi
push 0x38
lea eax, [esp + 0x8c]
mov bl, cl
push 0
push eax
call fcn.110816e0
xor eax, eax
lea edx, [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [0x110d6514]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
push dword [esp + 0x24]
push 1
push 0x110b7188
call fcn.1100ff40
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x9c], eax
add esp, 0xc
cmp dword [0x110d6528], 4
mov eax, dword [0x110f67e8]
mov dword [esp + 0x88], eax
setne cl
mov eax, dword [0x110f67ec]
test ecx, ecx
mov dword [esp + 0x8c], eax
mov eax, dword [0x110f68ec]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xb8]
cmove eax, dword [esp + 0x20]
mov dword [esp + 0x94], 1
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xa0], 1
mov dword [esp + 0xbc], 0x80000000
mov dword [esp + 0xb8], eax
push 0
test bl, bl
je 0x1104160b
cmp byte [0x110e6d36], 0
mov eax, 6
mov edi, 2
mov ecx, 0x110b71a4
cmovne edi, eax
xor edx, edx
call fcn.11011060
mov ecx, dword [0x110d6514]
lea eax, [esp + 0x88]
push 0x110d6510
push eax
mov eax, edi
mov edx, dword [ecx]
or eax, 0x40
push eax
push dword [0x110f68ec]
push 1
push 0
push ecx
call dword [edx + 0x40]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
jns 0x110412f7
mov eax, dword [0x110d6514]
lea edx, [esp + 0x88]
push 0x110d6510
push edx
or edi, 0x20
mov ecx, dword [eax]
push edi
push dword [0x110f68ec]
push 1
push 0
push eax
call dword [ecx + 0x40]
test eax, eax
jns 0x110412b3
mov ecx, 0x110b71bc
mov dword [0x110d6510], 0
push 1
xor edx, edx
call fcn.11011060
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e4
ret
cmp byte [0x110c6943], 0
mov byte [0x110fca6e], 1
jne 0x110412cd
push 6
push dword [0x110f68ec]
call esi
push 0x2030
push str.sfall_DirectX_9
push str.Failed_to_create_hardware_vertex_processing_device._nUsing_software_vertex_processing_instead.
push dword [0x110f68ec]
call ebp
cmp byte [0x110c6943], 0
jne 0x110412f7
push 9
push dword [0x110f68ec]
call esi
mov eax, dword [0x110d6510]
lea edx, [esp + 0xc0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [esp + 0x18c]
mov eax, edx
shr eax, 8
movzx eax, al
lea ecx, [eax + eax*4]
movzx eax, dl
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0xfc]
shr eax, 1
mov dword [0x110f68f0], ecx
test al, 1
je 0x11041349
push 0
xor edx, edx
mov ecx, str.Warning:_The_graphics_card_does_not_support_non_power_of_two_textures.
call fcn.11011060
mov ecx, dword [0x110f68f0]
mov eax, dword [0x110d6520]
cmp eax, 2
jne 0x11041563
cmp ecx, 0x14
jae 0x1104156b
xor eax, eax
mov dword [0x110d6520], eax
xor bl, bl
test eax, eax
je 0x1104149f
push 0
push 0x110f6924
push 0
push 0
push 0
push 0
mov ecx, 0x110afc68
test bl, bl
push 0xd94
mov eax, 0x110b0a00
cmove eax, ecx
push eax
push dword [0x110d6510]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateEffect]
test eax, eax
jne 0x110415a5
mov eax, dword [0x110f6924]
push str.image
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [0x110f6928], eax
mov eax, dword [0x110f6924]
push str.palette
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [0x110f692c], eax
mov eax, dword [0x110f6924]
push str.head
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [0x110f6930], eax
mov eax, dword [0x110f6924]
push str.size
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [0x110f6934], eax
mov eax, dword [0x110f6924]
push str.corner
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [0x110f6938], eax
mov eax, dword [0x110f6924]
push str.highlight
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [0x110f693c], eax
mov eax, dword [0x110f6924]
push str.sizehl
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [0x110f6940], eax
mov eax, dword [0x110f6924]
push str.cornerhl
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [0x110f6944], eax
mov eax, dword [0x110f6924]
push str.showhl
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [0x110f6948], eax
mov eax, dword [0x110f6924]
push 0x110b7400
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe8]
test bl, bl
mov eax, 0x32
mov ecx, 0x1c
cmovne eax, ecx
mov dword [0x110c46b4], eax
test bl, bl
jne 0x1104154c
mov eax, dword [0x110d6510]
push 0
push 0x110f68f4
push 2
push dword [0x110c46b4]
mov ecx, dword [eax]
push 0
push 1
push dword [0x110f67e4]
push dword [0x110f67e0]
push eax
call dword [ecx + 0x5c]
test eax, eax
je 0x1104154c
mov eax, dword [0x110d6510]
push 0
push 0x110f68f4
push 2
mov ecx, dword [eax]
push 0x16
push 0
push 1
push dword [0x110f67e4]
mov dword [0x110c46b4], 0x16
push dword [0x110f67e0]
push eax
call dword [ecx + 0x5c]
cmp byte [0x110c6943], 0
jne 0x11041518
push 6
push dword [0x110f68ec]
call esi
push 0x2030
push str.sfall_DirectX_9
push str.Texture_format_error._nGPU_does_not_support_the_D3DFMT_L8_texture_format._nNow_CPU_is_used_to_convert_the_palette._nSet_GPUBlt_option_to_CPU_to_bypass_this_warning_message.
push dword [0x110f68ec]
call ebp
cmp byte [0x110c6943], 0
jne 0x11041542
push 9
push dword [0x110f68ec]
call esi
mov dword [0x110d6520], 0
push 0x400
call fcn.1107e661
add esp, 4
mov dword [0x110f685c], eax
jmp 0x11041642
test eax, eax
je 0x11041367
mov eax, dword [0x110d6510]
push 0
push 0x110f68f4
push 2
mov ecx, dword [eax]
push 0x1c
push 0
push 1
push dword [0x110f67e4]
push dword [0x110f67e0]
push eax
call dword [ecx + 0x5c]
test eax, eax
mov eax, dword [0x110d6520]
jne 0x11041367
mov bl, 1
jmp 0x11041369
cmp byte [0x110c6943], 0
jne 0x110415b8
push 6
push dword [0x110f68ec]
call esi
push 0x2030
push str.sfall_DirectX_9
push str.Failed_to_create_shader_effects._nSwitching_to_CPU_for_the_palette_conversion.
push dword [0x110f68ec]
call ebp
cmp byte [0x110c6943], 0
jne 0x110415e2
push 9
push dword [0x110f68ec]
call esi
mov ecx, dword [0x110f68f4]
test ecx, ecx
je 0x110415fc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x110f68f4], 0
mov dword [0x110d6520], 0
jmp 0x110414a7
xor edx, edx
mov ecx, str.Resetting_D3D9_Device...
call fcn.11011060
mov eax, dword [0x110d6510]
lea edx, [esp + 0x88]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov ecx, dword [0x110f6924]
test ecx, ecx
je 0x1104163d
mov eax, dword [ecx]
push ecx
call dword [eax + 0x118]
call fcn.11063250
mov eax, dword [0x110d6510]
push 0
push 0x110f68f8
push 0
push dword [0x110c46b4]
mov ecx, dword [eax]
push 0
push 1
push dword [0x110f67e4]
push dword [0x110f67e0]
push eax
call dword [ecx + 0x5c]
mov eax, dword [0x110d6510]
push 0
push 0x110f68fc
push 0
mov ecx, dword [eax]
push 0x16
push 1
push 1
push dword [0x110f67e4]
push dword [0x110f67e0]
push eax
call dword [ecx + 0x5c]
mov eax, dword [0x110d6510]
push 0
push 0x110f6900
push 0
mov ecx, dword [eax]
push 0x16
push 1
push 1
push dword [0x110f67e4]
push dword [0x110f67e0]
push eax
call dword [ecx + 0x5c]
mov eax, dword [0x110f68fc]
push 0x110f6908
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [0x110f6900]
push 0x110f690c
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
cmp dword [0x110d6520], 0
je 0x1104173d
mov eax, dword [0x110d6510]
push 0
push 0x110f6920
push 0
mov ecx, dword [eax]
push 0x16
push 0x200
push 1
push 1
push 0x100
push eax
call dword [ecx + 0x5c]
mov eax, dword [0x110f6924]
push dword [0x110f68f8]
push dword [0x110f6928]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd0]
mov eax, dword [0x110f6924]
push dword [0x110f6920]
push dword [0x110f692c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd0]
mov eax, dword [0x110d6510]
push 0x110f6910
push 0
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x48]
mov eax, dword [0x110f67e4]
fild dword [0x110f67e4]
test eax, eax
jns 0x11041768
fadd dword [0x110bae18]
fld dword [0x110bad8c]
mov eax, dword [0x110f67e0]
fsub st(1), st(0)
fxch st(1)
fst dword [0x110c0b7c]
fild dword [0x110f67e0]
test eax, eax
jns 0x1104178d
fadd dword [0x110bae18]
mov ecx, dword [0x110d6510]
fsubrp st(2)
push 0
xor eax, eax
fxch st(1)
cmp byte [0x110fca6e], al
mov ebx, 0x10
push 0x110f6914
fst dword [0x110c0b90]
push 0
fstp dword [0x110c0ba8]
push 0x104
cmovne eax, ebx
or eax, 8
push eax
fstp dword [0x110c0bac]
mov edx, dword [ecx]
push 0x60
push ecx
call dword [edx + 0x68]
mov eax, dword [0x110f6914]
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x2c]
mov edi, dword [esp + 0x10]
mov ecx, 0x18
mov esi, 0x110c0b60
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x110f6914]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [0x110c0b60]
mov dword [esp + 0x28], eax
mov eax, dword [0x110c0b64]
mov dword [esp + 0x2c], eax
mov eax, dword [0x110c0b68]
mov dword [esp + 0x30], eax
mov eax, dword [0x110c0b6c]
mov dword [esp + 0x34], eax
mov eax, dword [0x110c0b70]
mov dword [esp + 0x38], eax
mov eax, dword [0x110c0b74]
mov dword [esp + 0x3c], eax
mov eax, dword [0x110c0b78]
mov dword [esp + 0x40], eax
mov eax, dword [0x110c0b7c]
mov dword [esp + 0x44], eax
mov eax, dword [0x110c0b80]
mov dword [esp + 0x48], eax
mov eax, dword [0x110c0b84]
mov dword [esp + 0x4c], eax
mov eax, dword [0x110c0b88]
mov dword [esp + 0x50], eax
mov eax, dword [0x110c0b8c]
mov dword [esp + 0x54], eax
mov eax, dword [0x110c0b90]
mov dword [esp + 0x58], eax
mov eax, dword [0x110c0b94]
mov dword [esp + 0x5c], eax
mov eax, dword [0x110c0b98]
mov dword [esp + 0x60], eax
mov eax, dword [0x110c0b9c]
mov dword [esp + 0x64], eax
mov eax, dword [0x110c0ba0]
mov dword [esp + 0x68], eax
mov eax, dword [0x110c0ba4]
mov dword [esp + 0x6c], eax
mov eax, dword [0x110c0ba8]
mov dword [esp + 0x70], eax
mov eax, dword [0x110c0bac]
mov dword [esp + 0x74], eax
mov eax, dword [0x110c0bb0]
mov dword [esp + 0x78], eax
mov eax, dword [0x110c0bb4]
mov dword [esp + 0x7c], eax
mov eax, dword [0x110c0bb8]
fild dword [0x110f67ec]
mov dword [esp + 0x80], eax
mov eax, dword [0x110c0bbc]
mov dword [esp + 0x84], eax
mov eax, dword [0x110f67ec]
test eax, eax
jns 0x110418f7
fadd dword [0x110bae18]
fld dword [0x110bad8c]
mov eax, dword [0x110f67e8]
fsub st(1), st(0)
fxch st(1)
fst dword [esp + 0x44]
fild dword [0x110f67e8]
test eax, eax
jns 0x1104191a
fadd dword [0x110bae18]
mov ecx, dword [0x110d6510]
fsubrp st(2)
push 0
xor eax, eax
fxch st(1)
cmp byte [0x110fca6e], al
mov edx, dword [ecx]
push 0x110f6918
push 0
push 0x104
cmovne eax, ebx
or eax, 8
push eax
fst dword [esp + 0x6c]
push 0x60
fstp dword [esp + 0x88]
push ecx
fstp dword [esp + 0x90]
call dword [edx + 0x68]
mov eax, dword [0x110f6918]
lea esi, [esp + 0x10]
push 0
push esi
push 0
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x2c]
mov edi, dword [esp + 0x10]
lea esi, [esp + 0x28]
mov ecx, 0x18
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x110f6918]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov ecx, dword [0x110d6510]
xor eax, eax
cmp byte [0x110fca6e], al
push 0
push 0x110f691c
mov edx, dword [ecx]
cmovne eax, ebx
push 0
push 0x104
or eax, 8
push eax
push 0x60
push ecx
call dword [edx + 0x68]
mov eax, dword [0x110d6510]
push 0x104
push eax
mov ecx, dword [eax]
call dword [ecx + 0x164]
mov eax, dword [0x110d6510]
push dword [0x110f68f8]
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x104]
mov eax, dword [0x110d6510]
push 0x18
push 0
push dword [0x110f6914]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x190]
mov eax, dword [0x110d6510]
push 0
push 7
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x110d6510]
push 1
push 0x16
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x110d6510]
push 0
push 0x89
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
cmp byte [0x110e6d37], 0
je 0x11041a63
mov eax, dword [0x110d6510]
push 2
push 5
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x114]
mov eax, dword [0x110d6510]
push 2
push 6
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x114]
mov ecx, str._Done
xor edx, edx
push 1
call fcn.11011060
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e4
ret