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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x485f33
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x24]
push eax
mov dword [esi + 0x178], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esi + 0x17c], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], esi
call fcn.0041a480
cmp byte [ebx + 0x26c], 0
je 0x4516a2
push 0x540
call fcn.00468c53
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0x120], ecx
je 0x4515ee
push edi
call fcn.004499c0
mov dword [edi + 0x4ec], 2
mov dword [edi], vtable.GameMgr::GMMenu.0
mov ecx, edi
mov dword [esp + 0x120], 0xffffffff
mov dword [ebx + 0x210], ecx
mov edx, dword [ecx]
mov eax, dword [edx + 0x258]
push 0
call eax
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x12c]
push esi
call eax
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push 1
push 1
call eax
cmp dword [ebx + 0x260], 8
jb 0x45163e
mov eax, dword [ebx + 0x24c]
jmp 0x451644
lea eax, [ebx + 0x24c]
push eax
push esi
mov edi, str.Menu
call fcn.00415da0
cmp dword [ebx + 0x260], 8
jb 0x451661
mov ecx, dword [ebx + 0x24c]
jmp 0x451667
lea ecx, [ebx + 0x24c]
mov edx, dword [ebx + 0x210]
push edx
call fcn.00430ec0
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
mov edx, dword [eax + 0x12c]
push esi
call edx
mov edi, dword [ebx + 0x210]
call fcn.00416380
lea eax, [ebx + 0x20]
push eax
push esi
call fcn.00415810
mov byte [ebx + 0x56], 1
jmp 0x451e81
mov ecx, dword [ebx + 0x264]
test ecx, ecx
je 0x451c88
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
mov ecx, dword [eax + 0x12c]
mov eax, dword [eax + 0x130]
mov dword [esi + 0x130], eax
mov dword [esi + 0x12c], ecx
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
mov al, byte [eax + 0x32]
mov ecx, dword [ebx + 0x264]
mov byte [ebx + 0x56], al
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
push eax
mov edx, str.Menu
lea edi, [esp + 0xbc]
call fcn.00415f40
push 0x540
mov dword [esp + 0x124], 1
call fcn.00468c53
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov byte [esp + 0x120], 2
je 0x45174c
push edi
call fcn.004499c0
mov dword [edi + 0x4ec], 2
mov dword [edi], vtable.GameMgr::GMMenu.0
jmp 0x45174e
xor edi, edi
mov byte [esp + 0x120], 1
mov dword [ebx + 0x210], edi
mov edx, dword [edi]
mov eax, dword [edx + 0x258]
push 0
mov ecx, edi
call eax
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x12c]
push esi
call eax
cmp dword [ebx + 0x25c], 0
je 0x4517ca
cmp dword [ebx + 0x260], 8
jb 0x451795
mov eax, dword [ebx + 0x24c]
jmp 0x45179b
lea eax, [ebx + 0x24c]
push eax
push esi
mov edi, str.Menu
call fcn.00415da0
cmp dword [ebx + 0x260], 8
jb 0x4517b8
mov ecx, dword [ebx + 0x24c]
jmp 0x4517be
lea ecx, [ebx + 0x24c]
mov edx, dword [ebx + 0x210]
push edx
call fcn.00430ec0
cmp dword [esp + 0xcc], 0
je 0x45181c
cmp dword [esp + 0xd0], 8
mov eax, dword [esp + 0xbc]
jae 0x4517ec
lea eax, [esp + 0xbc]
push eax
push esi
mov edi, str.Menu
call fcn.00415da0
cmp dword [esp + 0xd0], 8
mov ecx, dword [esp + 0xbc]
jae 0x451810
lea ecx, [esp + 0xbc]
mov eax, dword [ebx + 0x210]
push eax
call fcn.00430ec0
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x238]
xor edi, edi
mov dword [esp + 0x14], edi
call eax
test eax, eax
jbe 0x4518e8
lea ebx, [ebx]
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x228]
push edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 3
call eax
test eax, eax
je 0x4518c9
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x228]
push edi
call eax
cmp dword [ebx + 0x288], 8
mov edi, eax
jb 0x451884
mov ecx, dword [ebx + 0x274]
jmp 0x45188a
lea ecx, [ebx + 0x274]
push edi
call fcn.00430ec0
mov ecx, dword [ebx + 0x210]
mov dword [edi + 0x658], ecx
mov edx, dword [ebx + 0x264]
mov eax, dword [edx + 0x65c]
mov dword [edi + 0x65c], eax
mov dword [edi + 0x6b8], ebx
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x23c]
push edi
call eax
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x238]
add edi, 1
mov dword [esp + 0x14], edi
call eax
cmp edi, eax
jb 0x451840
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x12c]
push esi
call eax
mov edi, dword [ebx + 0x210]
call fcn.00416380
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
call eax
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
xor eax, eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 4]
push 1
mov dword [esp + 0x2c], esi
xor edi, edi
mov dword [esp + 0x3c], esi
push eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], edi
xor esi, esi
mov dword [esp + 0x60], 0x28
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x88], ecx
sub ecx, dword [esp + 0x6c]
mov dword [esp + 0x84], eax
sub eax, dword [esp + 0x68]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 0x238]
mov dword [esp + 0x14], edi
call eax
test eax, eax
jbe 0x451a9d
jmp 0x4519e0
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x228]
push edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 3
call eax
test eax, eax
je 0x451a7e
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x228]
push edi
call eax
mov edi, eax
mov edx, dword [edi]
mov eax, dword [edx + 0xd0]
mov ecx, edi
call eax
test al, al
je 0x451a7a
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [edi]
mov edx, dword [edx + 0xa0]
push eax
push ecx
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x98]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa4]
add esi, dword [esp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x3c]
add eax, ecx
cmp dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
jg 0x451a7a
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x238]
add edi, 1
mov dword [esp + 0x14], edi
call eax
cmp edi, eax
jb 0x4519e0
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x238]
call eax
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
lea edi, [eax - 1]
mov eax, dword [edx + 0x264]
call eax
imul eax, edi
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov edx, dword [edx + 0x25c]
add esi, eax
lea eax, [esp + 0x9c]
push eax
call edx
add esi, dword [eax + 4]
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
mov eax, dword [eax + 0x25c]
lea edx, [esp + 0x9c]
push edx
call eax
add esi, dword [eax + 0xc]
cmp dword [esp + 0x18], 0
jne 0x451b0e
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
mov edx, dword [eax + 0x178]
lea ecx, [esp + 0x8c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x30]
mov ecx, dword [ebx + 0x264]
lea eax, [edi + esi]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edi
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
mov edx, dword [eax + 0x178]
push 2
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x18]
add ecx, 0xfffffffa
cmp byte [ebx + 0x26d], 0
lea edx, [ecx + eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
je 0x451c10
cmp edx, dword [esp + 0x84]
jle 0x451bab
mov ecx, dword [esp + 0x8c]
add ecx, 6
mov dword [esp + 0x24], ecx
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x88]
jle 0x451c14
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x264]
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
mov eax, dword [ecx]
mov edx, dword [eax + 0x128]
call edx
mov edx, dword [eax + 0x178]
push 2
lea ecx, [esp + 0x40]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov edx, eax
sub eax, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
jmp 0x451c18
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov esi, dword [ebx + 0x28c]
test esi, esi
mov dword [ebx + 0x218], ecx
mov dword [ebx + 0x21c], eax
jle 0x451c3e
mov edi, edx
sub edi, eax
cmp edi, esi
jle 0x451c3e
mov eax, edx
sub eax, esi
mov dword [esp + 0x20], eax
push 0x14
sub edx, eax
push edx
mov edx, dword [esp + 0x2c]
sub edx, ecx
push edx
push eax
mov eax, dword [ebx + 4]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push 1
push 1
mov ecx, ebx
call eax
cmp dword [esp + 0xd0], 8
jb 0x451e81
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00468cbd
add esp, 4
jmp 0x451e81
lea edx, [esp + 0xd4]
push edx
call fcn.00409880
mov dword [esp + 0xfc], 0
mov dword [esp + 0x120], 3
cmp dword [ebx + 0x244], 8
jb 0x451cbc
mov eax, dword [ebx + 0x230]
jmp 0x451cc2
lea eax, [ebx + 0x230]
mov ecx, dword [ebx + 0x294]
mov edx, dword [ebx + 0x228]
push ecx
push eax
mov eax, dword [ebx + 0x220]
push edx
push eax
lea ecx, [esp + 0xe4]
push ecx
mov ecx, dword [ebx + 0x224]
mov edx, esi
call fcn.0041f580
mov edi, eax
mov dword [ebx + 0x210], eax
call fcn.00416380
lea edx, [ebx + 0x20]
push edx
push esi
call fcn.00415810
cmp dword [ebx + 0x25c], 0
je 0x451d30
cmp dword [ebx + 0x260], 8
jb 0x451d1e
mov eax, dword [ebx + 0x24c]
jmp 0x451d24
lea eax, [ebx + 0x24c]
push eax
push esi
mov edi, str.Menu
call fcn.00415da0
push esi
mov edx, str.Menu
lea edi, [esp + 0xa0]
call fcn.00415f40
mov byte [esp + 0x120], 4
cmp dword [esp + 0xb0], 0
je 0x451d78
cmp dword [esp + 0xb4], 8
mov ecx, dword [esp + 0xa0]
jae 0x451d6c
lea ecx, [esp + 0xa0]
mov eax, dword [ebx + 0x210]
push eax
call fcn.00430ec0
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x238]
xor edi, edi
call eax
test eax, eax
jbe 0x451dea
mov edi, edi
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x228]
push edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 3
call eax
test eax, eax
je 0x451dd3
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x228]
push edi
call eax
mov ecx, dword [ebx + 0x214]
mov dword [eax + 0x65c], ecx
mov dword [eax + 0x6b8], ebx
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x238]
add edi, 1
call eax
cmp edi, eax
jb 0x451d90
mov eax, ebx
call fcn.004512f0
cmp byte [esi + 0x32], 0
je 0x451e04
mov eax, dword [esi + 0x34]
push eax
mov ecx, esi
call fcn.00418c30
jmp 0x451e15
mov ecx, dword [esi + 0x178]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esp + 0xb4], 8
jb 0x451e2f
mov edx, dword [esp + 0xa0]
push edx
call fcn.00468cbd
add esp, 4
xor eax, eax
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], eax
mov word [esp + 0xa0], ax
mov dword [esp + 0x120], 5
mov eax, dword [esp + 0xd4]
mov edx, dword [eax + 0x54]
lea ecx, [esp + 0xd4]
call edx
lea eax, [esp + 0xd4]
push eax
mov dword [esp + 0x124], 0xffffffff
call fcn.00409980
xor eax, eax
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00468c2b
mov esp, ebp
pop ebp
ret 0x10