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

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov eax, dword [ebx + 4]
push edi
mov ebp, ecx
push eax
call dword [sym.imp.USER32.dll_WindowFromDC]
push eax
call fcn.004c7c6e
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x158]
test eax, eax
je 0x46aa5d
mov eax, dword [esp + 0x168]
lea ecx, [esp + 0x34]
push eax
push ebx
push ecx
mov ecx, ebp
call fcn.0046a390
mov edx, dword [esp + 0x158]
mov ecx, 5
mov esi, 0x544750
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
push edx
mov ecx, ebp
call fcn.0046aba0
fimul dword [esp + 0x68]
call fcn.004a7884
mov cl, byte [esp + 0x168]
mov dword [esp + 0x78], eax
test cl, cl
jne 0x46a4a5
push 0
push 5
mov edx, dword [esp + 0x160]
sub esp, 0x14
mov ecx, 5
lea esi, [esp + 0x80]
mov edi, esp
push eax
mov eax, dword [esp + 0x184]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x17c]
push eax
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.0046b370
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 1
push eax
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.0046ae00
mov eax, dword [esp + 0x38]
push 1
sub esp, 0x14
mov ecx, 5
mov esi, 0x544750
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x170]
push eax
push ecx
push esi
push ebx
mov ecx, ebp
call fcn.0046ac00
mov ecx, esi
call fcn.004482d0
test eax, eax
jne 0x46a538
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub eax, edx
mov edi, dword [esp + 0x18]
cdq
sub eax, edx
push 0xf4
mov ecx, eax
mov eax, dword [esp + 0x24]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub eax, 0x32
sub ecx, 0x64
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.00468d30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 0x14
mov ecx, esi
call fcn.004482a0
test eax, eax
jne 0x46a585
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub eax, edx
mov edi, dword [esp + 0x18]
cdq
sub eax, edx
push 0xf6
mov ecx, eax
mov eax, dword [esp + 0x24]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub eax, 0x32
sub ecx, 0x64
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.00468d30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 0x14
lea edi, [ebp + 0xaf90]
push esi
mov ecx, edi
call fcn.0046c710
mov ecx, esi
call fcn.004481c0
mov ecx, esi
mov dword [esp + 0x4c], eax
call fcn.00448200
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.00448230
mov ecx, dword [esp + 0x2c]
test eax, eax
jge 0x46a5c2
test ecx, ecx
jle 0x46a7f4
sub ecx, eax
mov dword [esp + 0x30], ecx
xor ecx, ecx
xor edx, edx
xor eax, eax
xor esi, esi
mov dword [esp + eax + 0x10c], ecx
mov dword [esp + eax + 0xc4], esi
mov dword [esp + eax + 0x110], edx
mov dword [esp + eax + 0xc8], esi
add eax, 8
cmp eax, 0x40
jl 0x46a5cc
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub esp, 0x10
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x28]
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
call fcn.00469240
mov ecx, edi
mov esi, 1
call fcn.0046cc20
cmp eax, esi
jle 0x46a9f0
lea edx, [esi - 1]
lea eax, [esp + 0xbc]
push edx
push eax
mov ecx, edi
call fcn.0046c830
mov ecx, dword [eax]
push esi
mov dword [esp + 0x28], ecx
mov ecx, edi
mov edx, dword [eax + 4]
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0x30], edx
call fcn.0046c830
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, ebp
call fcn.00469280
test eax, eax
je 0x46aa5d
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x68]
push eax
push ecx
lea eax, [esp + 0x48]
push edx
push eax
mov ecx, ebp
call fcn.00469280
test eax, eax
je 0x46aa5d
lea ecx, [esp + 0x98]
push esi
push ecx
mov ecx, edi
call fcn.0046ca10
lea edx, [esp + 0x8c]
push esi
push edx
mov ecx, edi
call fcn.0046c850
mov al, byte [esp + 0xa0]
test al, al
je 0x46a70e
mov al, byte [esp + 0x94]
mov byte [esp + 0x13], 1
test al, al
jne 0x46a713
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x168]
lea ecx, [esp + 0xb4]
push eax
push ebx
push ecx
mov ecx, ebp
call fcn.0046a390
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x24]
add edx, eax
mov eax, dword [esp + 0x28]
add eax, ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x168]
push eax
push ebx
push ecx
mov ecx, ebp
mov dword [esp + 0x30], edx
call fcn.0046a390
mov edx, eax
sub esp, 0x10
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x4c]
add edx, eax
mov eax, dword [esp + 0x50]
add eax, ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x38]
add eax, ecx
add edx, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov eax, esp
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x28]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, ebp
mov dword [eax + 0xc], edx
lea eax, [esp + 0x34]
push eax
call fcn.00469240
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
call fcn.00469240
mov ecx, edi
call fcn.0046cc20
dec eax
cmp esi, eax
jge 0x46a801
push 0
jmp 0x46a803
add eax, ecx
neg eax
mov dword [esp + 0x30], eax
jmp 0x46a5c6
push 1
push esi
mov ecx, edi
call fcn.0046cbf0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x80], eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x40]
test al, al
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
je 0x46a983
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x68]
push edx
push eax
lea edx, [esp + 0x50]
push ecx
push edx
mov ecx, ebp
call fcn.00469280
test eax, eax
je 0x46aa5d
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push edx
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, ebp
call fcn.00469280
test eax, eax
je 0x46aa5d
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add eax, edx
mov edx, dword [esp + 0x50]
push 1
add edx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], edx
push edx
mov edx, ecx
mov ecx, ebp
push edx
push eax
push ebx
mov dword [esp + 0x5c], eax
call fcn.0046aaa0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, ebp
mov dword [eax + 0xc], edx
lea eax, [esp + 0x54]
push eax
call fcn.00469240
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, ebp
call fcn.00469240
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + eax*8 + 0x10c], edx
mov edx, dword [esp + 0x50]
mov dword [esp + eax*8 + 0x110], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + eax*8 + 0xc4], edx
mov dword [esp + eax*8 + 0xc8], ecx
inc eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
push 1
push 0
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.0046b0c0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
push 2
push 0
push 0
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push ebx
mov ecx, ebp
call fcn.00468b50
mov ecx, edi
inc esi
call fcn.0046cc20
cmp esi, eax
jl 0x46a646
mov edi, dword [esp + 0x2c]
xor esi, esi
test edi, edi
jle 0x46aa37
mov ecx, dword [esp + esi*8 + 0xc8]
mov edx, dword [esp + esi*8 + 0xc4]
mov eax, dword [esp + esi*8 + 0x110]
push 0
push 0
push ecx
mov ecx, dword [esp + esi*8 + 0x118]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
push edx
push eax
push 0
push ebx
mov ecx, ebp
call fcn.0046b0c0
inc esi
cmp esi, edi
jl 0x46a9fa
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x38]
push 5
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x164]
push eax
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.0046b870
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 0x14