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

Disassembly:
push 0xffffffffffffffff
push 0x4aac4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ec
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x64], ebp
cmp esi, ebx
je 0x4702c7
mov eax, dword [esp + 0x20c]
mov ecx, dword [esi + 0x44]
mov dword [esp + 0xe8], ecx
lea edx, [esp + 0xe8]
mov edi, dword [eax + 0x2c]
push ebx
mov dword [esp + 0xf0], edi
mov eax, dword [esi + 0x40]
neg eax
sbb eax, eax
push edx
and eax, 0xfffff810
mov dword [esp + 0x44], edi
add eax, 0x7f6
push eax
call fcn.00471ef0
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x20]
push eax
call fcn.0049b9e8
mov ecx, dword [esp + 0x20c]
mov eax, dword [esp + 0x1f4]
mov dword [esp + 0x204], ebx
mov edx, dword [ecx + 0x18]
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x50], edx
sete cl
cmp eax, ebx
mov dword [esp + 0x38], ecx
jle 0x46fd2b
mov edx, dword [esp + 0x20]
push 0x667e68
push edx
call fcn.0048a454
add esp, 8
mov dword [esp + 0x44], 1
test eax, eax
je 0x46fd2f
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x20c]
lea ecx, [esp + 0x10]
add eax, 0x1c
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esp + 0x38], ebx
je 0x46fd59
push ebx
lea edx, [esp + 0x14]
push 1
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x74], ebx
cmp eax, ebx
mov dword [esp + 0x78], ebx
jne 0x46fd81
lea eax, [esp + 0x74]
mov ecx, ebp
push eax
push edi
call fcn.00471600
test eax, eax
je 0x46fd81
mov edi, 1
jmp 0x46fd83
xor edi, edi
mov eax, dword [esp + 0x50]
lea ecx, [esi + 0x1a8]
push ebx
lea edx, [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0xbc]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00473fa0
cmp edi, ebx
mov byte [esp + 0x204], 1
je 0x46fe0c
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x54]
push ecx
push edx
mov ecx, ebp
call fcn.00471670
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
push ebx
mov eax, dword [eax + 4]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
push ebx
add ecx, eax
mov dword [esp + 0x94], eax
sub eax, ecx
mov dword [esp + 0x9c], ecx
push ebx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0xa8], edx
call fcn.004a46dd
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
cmp edi, ebx
lea edx, [eax + ecx + 6]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
je 0x46ff8d
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esi + 0x84]
mov eax, ecx
xor edx, edx
shr eax, 4
div ebx
mov edi, dword [esi + 0x80]
test edi, edi
mov dword [esp + 0x54], edx
je 0x46fe88
mov eax, dword [edi + edx*4]
test eax, eax
je 0x46fe84
cmp dword [eax + 8], ecx
je 0x46fe7c
mov eax, dword [eax]
test eax, eax
jne 0x46fe6f
jmp 0x46fe84
test eax, eax
jne 0x46ff5d
test edi, edi
jne 0x46feb8
lea ebp, [ebx*4]
push ebp
call fcn.0049b6bb
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x80], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 0x84], ebx
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x46ff00
mov eax, dword [esi + 0x94]
push 0x20
lea ecx, [esi + 0x90]
push eax
push ecx
call fcn.0049b0df
mov ecx, dword [esi + 0x94]
mov edx, ecx
shl edx, 5
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0x1c]
jl 0x46ff00
inc ecx
mov edx, dword [esi + 0x8c]
mov dword [eax], edx
mov dword [esi + 0x8c], eax
sub eax, 0x20
dec ecx
jne 0x46feec
mov edi, dword [esi + 0x8c]
mov ebp, dword [esi + 0x88]
inc ebp
push 1
mov eax, dword [edi]
mov dword [esi + 0x88], ebp
lea ebp, [edi + 8]
mov dword [esi + 0x8c], eax
push ebp
call fcn.004719f0
lea ecx, [edi + 0xc]
push 1
push ecx
call fcn.00471a60
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
mov dword [edi + 4], ecx
mov dword [ebp], edx
mov edx, dword [esi + 0x80]
mov ebp, dword [esp + 0x64]
mov eax, edi
mov edx, dword [edx + ecx*4]
mov dword [edi], edx
mov edx, dword [esi + 0x80]
mov dword [edx + ecx*4], edi
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push edx
push ecx
mov ecx, ebp
call fcn.00471550
push eax
lea eax, [esp + 0xc0]
push eax
mov ecx, ebp
call fcn.004710a0
xor ebx, ebx
mov edi, dword [esp + 0x38]
cmp edi, ebx
je 0x46ffc5
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x100]
mov dword [esp + 0x30], eax
inc ecx
lea eax, [esp + 0x28]
push edx
mov dword [esp + 0x38], ecx
push eax
jmp 0x46ffd4
mov ecx, dword [esi + 0x118]
lea edx, [esp + 0x9c]
push ecx
push edx
lea ecx, [esp + 0xb4]
call fcn.004a45d2
cmp dword [esp + 0x1f4], ebx
jle 0x470041
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], ecx
mov ecx, dword [esi + 0x114]
lea eax, [edx + eax + 6]
mov edx, dword [esi + 0x110]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x28], ecx
push ebx
lea eax, [esp + 0x2c]
push 2
lea ecx, [esp + 0x6c]
push eax
push ecx
lea ecx, [esp + 0xbc]
mov dword [esp + 0x3c], edx
call fcn.00474ba0
cmp dword [esp + 0x44], ebx
je 0x470102
mov edx, dword [esi + 0x124]
lea ecx, [esp + 0x28]
push edx
push 1
push ebx
call fcn.004a2634
lea eax, [esp + 0x28]
lea ecx, [esp + 0xac]
push eax
mov byte [esp + 0x208], 2
call fcn.004a1c1b
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x114]
mov edx, dword [eax + 0x110]
cmp ecx, edx
jne 0x47009d
cmp ecx, dword [eax + 0x118]
jne 0x47009d
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 2]
jmp 0x4700a8
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x10]
lea eax, [edx + eax + 0xb]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x64]
inc ecx
push ecx
push eax
push edx
lea ecx, [esp + 0xb8]
call fcn.004a210c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
push eax
push ecx
lea ecx, [esp + 0xb4]
call fcn.004a2158
push esi
lea ecx, [esp + 0xb0]
call fcn.004a1c1b
mov dword [esp + 0x28], 0x585780
lea ecx, [esp + 0x28]
mov byte [esp + 0x204], 3
call fcn.004a261e
jmp 0x47029f
lea edx, [esp + 0x48]
lea eax, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x214]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x4c]
mov ecx, dword [eax + 0x10]
push edx
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x5c], ebx
call fcn.00470670
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
add esp, 0x14
cmp eax, ebx
jne 0x470149
cmp ecx, ebx
je 0x470197
cmp dword [esp + 0x24], ebx
jne 0x470167
push ecx
push ebx
push eax
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0xbc]
push edx
push eax
mov ecx, ebp
call fcn.004706d0
push 0xc
call fcn.0049b6bb
mov ecx, dword [esi + 0x44]
add esp, 4
mov dword [eax], ecx
mov edx, dword [esi + 0x48]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x1f0]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x1c]
push ebx
push eax
push 0x8121
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x1c]
cmp edi, ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
jne 0x4701db
mov ecx, dword [ebp + 0x14]
push ebx
push 0x10
add ecx, 0xb
push ebx
push ecx
lea ecx, [esp + 0x8c]
call fcn.004a46fb
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x54]
push edi
lea ecx, [esp + 0x84]
push eax
mov eax, dword [esp + 0x218]
push ecx
push edx
lea ecx, [esp + 0xc0]
push eax
push ecx
mov ecx, ebp
call fcn.00470950
cmp edi, ebx
jne 0x47029f
mov ecx, dword [esp + 0x1f0]
xor edx, edx
mov eax, ecx
mov edi, 0xfffffffe
shr eax, 4
div dword [esi + 0x178]
mov esi, dword [esi + 0x174]
cmp esi, ebx
je 0x470250
mov eax, dword [esi + edx*4]
cmp eax, ebx
je 0x470250
cmp dword [eax + 8], ecx
je 0x470249
mov eax, dword [eax]
cmp eax, ebx
jne 0x47023c
jmp 0x470250
cmp eax, ebx
je 0x470250
mov edi, dword [eax + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x60], edx
mov dword [esp + 0x54], eax
lea edx, [ecx + eax + 6]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push edi
lea ecx, [esp + 0xbc]
push eax
push ecx
mov ecx, ebp
call fcn.00470bd0
lea ecx, [esp + 0xac]
mov byte [esp + 0x204], 0
call fcn.00474030
lea ecx, [esp + 0x20]
mov dword [esp + 0x204], 0xffffffff
call fcn.0049b97a
mov ecx, dword [esp + 0x1fc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1f8
ret 4