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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d061c
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4f87d8]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x4f87d8]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
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.0044ef80
cmp byte [ebx + 0x26c], 0
je 0x46baa6
push 0x548
call fcn.004a84f2
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0xe8], ecx
je 0x46b9ee
push edi
call fcn.00462ca0
mov dword [edi + 0x4f4], 2
mov dword [edi], vtable.GameMgr::GMMenu.0
mov ecx, edi
mov dword [esp + 0xe8], 0xffffffff
mov dword [ebx + 0x210], ecx
mov edx, dword [ecx]
mov eax, dword [edx + 0x268]
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
mov edi, 8
cmp dword [ebx + 0x260], edi
jb 0x46ba42
mov eax, dword [ebx + 0x24c]
jmp 0x46ba48
lea eax, [ebx + 0x24c]
push eax
push str.Menu
mov ecx, esi
call fcn.0044a970
cmp dword [ebx + 0x260], edi
jb 0x46ba65
mov ecx, dword [ebx + 0x24c]
jmp 0x46ba6b
lea ecx, [ebx + 0x24c]
mov edx, dword [ebx + 0x210]
push edx
call fcn.004464c0
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.0044af20
lea eax, [ebx + 0x20]
push eax
push esi
call fcn.0044a490
mov byte [ebx + 0x56], 1
jmp 0x46c20e
mov ecx, dword [ebx + 0x264]
test ecx, ecx
je 0x46c074
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 eax, dword [ecx]
lea edx, [esp + 0xbc]
push edx
mov edx, dword [eax + 0x128]
call edx
push eax
mov edx, str.Menu
call fcn.0044aae0
push 0x548
mov dword [esp + 0xec], 1
call fcn.004a84f2
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov byte [esp + 0xe8], 2
je 0x46bb51
push edi
call fcn.00462ca0
mov dword [edi + 0x4f4], 2
mov dword [edi], vtable.GameMgr::GMMenu.0
jmp 0x46bb53
xor edi, edi
mov byte [esp + 0xe8], 1
mov dword [ebx + 0x210], edi
mov eax, dword [edi]
mov edx, dword [eax + 0x268]
push 0
mov ecx, edi
call edx
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
mov edx, dword [eax + 0x12c]
push esi
call edx
cmp dword [ebx + 0x25c], 0
mov edi, 8
je 0x46bbd3
cmp dword [ebx + 0x260], edi
jb 0x46bb9e
mov eax, dword [ebx + 0x24c]
jmp 0x46bba4
lea eax, [ebx + 0x24c]
push eax
push str.Menu
mov ecx, esi
call fcn.0044a970
cmp dword [ebx + 0x260], edi
jb 0x46bbc1
mov ecx, dword [ebx + 0x24c]
jmp 0x46bbc7
lea ecx, [ebx + 0x24c]
mov eax, dword [ebx + 0x210]
push eax
call fcn.004464c0
cmp dword [esp + 0xd0], 0
je 0x46bc24
cmp dword [esp + 0xd4], edi
mov eax, dword [esp + 0xc0]
jae 0x46bbf4
lea eax, [esp + 0xc0]
push eax
push str.Menu
mov ecx, esi
call fcn.0044a970
cmp dword [esp + 0xd4], edi
mov ecx, dword [esp + 0xc0]
jae 0x46bc18
lea ecx, [esp + 0xc0]
mov edx, dword [ebx + 0x210]
push edx
call fcn.004464c0
mov ecx, dword [ebx + 0x264]
mov eax, dword [ecx]
mov edx, dword [eax + 0x248]
xor edi, edi
mov dword [esp + 0x14], edi
call edx
test eax, eax
jbe 0x46bcea
mov ecx, dword [ebx + 0x264]
mov eax, dword [ecx]
mov edx, dword [eax + 0x238]
push edi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 3
call eax
test eax, eax
je 0x46bccb
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x238]
push edi
call eax
cmp dword [ebx + 0x288], 8
mov edi, eax
jb 0x46bc86
mov ecx, dword [ebx + 0x274]
jmp 0x46bc8c
lea ecx, [ebx + 0x274]
push edi
call fcn.004464c0
mov ecx, dword [ebx + 0x210]
mov dword [edi + 0x6b4], ecx
mov edx, dword [ebx + 0x264]
mov eax, dword [edx + 0x6b8]
mov dword [edi + 0x6b8], eax
mov dword [edi + 0x714], ebx
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24c]
push edi
call eax
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x248]
add edi, 1
mov dword [esp + 0x14], edi
call eax
cmp edi, eax
jb 0x46bc42
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.0044af20
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 + 0xac], ecx
sub ecx, dword [esp + 0x6c]
mov dword [esp + 0xa8], 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 + 0x248]
mov dword [esp + 0x14], edi
call eax
test eax, eax
jbe 0x46be97
jmp 0x46bde0
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x238]
push edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 3
call eax
test eax, eax
je 0x46be78
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x238]
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 0x46be74
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 + 0x7c]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
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 0x46be74
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x264]
mov edx, dword [ecx]
mov eax, dword [edx + 0x248]
add edi, 1
mov dword [esp + 0x14], edi
call eax
cmp edi, eax
jb 0x46bde0
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x248]
call eax
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
lea edi, [eax - 1]
mov eax, dword [edx + 0x274]
call eax
imul eax, edi
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov edx, dword [edx + 0x26c]
add esi, eax
lea eax, [esp + 0x7c]
push eax
call edx
add esi, dword [eax + 4]
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
mov eax, dword [eax + 0x26c]
lea edx, [esp + 0x7c]
push edx
call eax
add esi, dword [eax + 0xc]
cmp dword [esp + 0x18], 0
jne 0x46bf02
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 + 0x90]
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 + 0x98]
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 0x46c004
cmp edx, dword [esp + 0xa8]
jle 0x46bf9f
mov ecx, dword [esp + 0x90]
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 + 0xac]
jle 0x46c008
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 0x46c00c
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 0x46c032
mov edi, edx
sub edi, eax
cmp edi, esi
jle 0x46c032
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 + 0xd4], 8
jb 0x46c20e
mov ecx, dword [esp + 0xc0]
push ecx
jmp 0x46c206
cmp dword [ebx + 0x244], 8
mov dword [esp + 0x7c], 0
jb 0x46c08d
mov eax, dword [ebx + 0x230]
jmp 0x46c093
lea eax, [ebx + 0x230]
mov edx, dword [ebx + 0x294]
mov ecx, dword [ebx + 0x220]
push edx
push eax
mov eax, dword [ebx + 0x228]
push eax
push ecx
mov ecx, dword [ebx + 0x224]
lea edx, [esp + 0x8c]
push edx
mov edx, esi
call fcn.0043f340
mov edi, eax
mov dword [ebx + 0x210], eax
call fcn.0044af20
lea eax, [ebx + 0x20]
push eax
push esi
call fcn.0044a490
cmp dword [ebx + 0x25c], 0
je 0x46c102
cmp dword [ebx + 0x260], 8
jb 0x46c0ef
mov eax, dword [ebx + 0x24c]
jmp 0x46c0f5
lea eax, [ebx + 0x24c]
push eax
push str.Menu
mov ecx, esi
call fcn.0044a970
lea ecx, [esp + 0xa0]
push ecx
push esi
mov edx, str.Menu
call fcn.0044aae0
mov dword [esp + 0xe8], 3
cmp dword [esp + 0xb4], 0
je 0x46c14e
cmp dword [esp + 0xb8], 8
mov ecx, dword [esp + 0xa4]
jae 0x46c142
lea ecx, [esp + 0xa4]
mov edx, dword [ebx + 0x210]
push edx
call fcn.004464c0
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
mov edx, dword [eax + 0x248]
xor edi, edi
call edx
test eax, eax
jbe 0x46c1ca
jmp 0x46c170
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
mov edx, dword [eax + 0x238]
push edi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 3
call eax
test eax, eax
je 0x46c1b3
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x238]
push edi
call eax
mov ecx, dword [ebx + 0x214]
mov dword [eax + 0x6b8], ecx
mov dword [eax + 0x714], ebx
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x248]
add edi, 1
call eax
cmp edi, eax
jb 0x46c170
mov eax, ebx
call fcn.0046b6f0
cmp byte [esi + 0x32], 0
je 0x46c1e3
mov ecx, dword [esi + 0x34]
push ecx
push esi
call fcn.0044d810
jmp 0x46c1f4
mov edx, dword [esi + 0x178]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esp + 0xb8], 8
jb 0x46c20e
mov eax, dword [esp + 0xa4]
push eax
call fcn.004a85e6
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004a85d7
mov esp, ebp
pop ebp
ret 0x10