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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d52c7
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x56f710]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x46be3e
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
je 0x46be3e
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
push dword [ebp + 0x10]
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], eax
call fcn.0040254f
push edi
push 0xa
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], edi
call fcn.00411e72
mov ebx, dword [ebp + 8]
mov esi, eax
cmp esi, edi
jl 0x46b9ac
lea edi, [ebx + 0x11c]
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407990
mov byte [esp + 0x80], 1
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
call fcn.0049d2c3
mov byte [esp + 0x80], 0
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.00402845
inc esi
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004078ef
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 2
call fcn.004025ee
mov byte [esp + 0x80], 0
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.00402845
push 0
push 0xa
lea ecx, [esp + 0x2c]
call fcn.00411e72
mov esi, eax
test esi, esi
jge 0x46b92c
lea edi, [ebx + 0x11c]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x38], edi
call fcn.0049d2c3
call fcn.0049219b
push eax
lea ecx, [esp + 0x1c]
call fcn.00402802
mov byte [esp + 0x80], 3
call fcn.0049219b
push eax
lea ecx, [esp + 0x20]
call fcn.00402802
and dword [esp + 0x20], 0
mov byte [esp + 0x80], 4
mov eax, dword [ebx + 0x124]
test eax, eax
jle 0x46bd1e
lea esi, [ebx + 0x130]
jmp 0x46ba13
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
mov ecx, edi
call fcn.00411f7a
push eax
lea ecx, [esp + 0x1c]
call fcn.004025ee
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x46bd5e
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0046d3be
mov ecx, dword [esp + 0x2c]
cmp dword [eax], ecx
jle 0x46bd5e
or edi, 0xffffffff
lea ecx, [esp + 0x18]
test edi, edi
jge 0x46ba6c
push dword [ebx + 0x118]
call fcn.0040c8a4
jmp 0x46babb
lea eax, [edi + 1]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004078ef
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 5
call fcn.004025ee
mov byte [esp + 0x80], 4
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.00402845
push dword [ebx + 0x118]
lea ecx, [esp + 0x20]
call fcn.0040c8a4
test eax, eax
jl 0x46bc62
lea eax, [eax + edi + 1]
mov dword [esp + 0x28], eax
test eax, eax
jl 0x46bc62
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
call fcn.00407990
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.0046d3be
mov ecx, dword [esp + 0x2c]
cmp dword [eax], ecx
mov ecx, dword [esp + 0x38]
setg byte [esp + 0x17]
add ecx, 0xfffffff0
call fcn.00402845
cmp byte [esp + 0x17], 0
je 0x46bc59
lea ecx, [esp + 0x18]
test edi, edi
jl 0x46bba1
inc edi
push edi
lea eax, [esp + 0x40]
push eax
call fcn.00407990
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 8
call fcn.004025ee
mov byte [esp + 0x80], 4
mov ecx, dword [esp + 0x3c]
add ecx, 0xfffffff0
call fcn.00402845
lea ebx, [esp + 0x1c]
call fcn.0040c8c6
mov eax, dword [esi + 8]
mov ecx, ebx
push ecx
push eax
mov ecx, esi
call fcn.0049d2c3
push edi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
call fcn.004078ef
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 9
call fcn.004025ee
mov byte [esp + 0x80], 4
mov ecx, dword [esp + 0x40]
add ecx, 0xfffffff0
call fcn.00402845
lea ebx, [esp + 0x18]
call fcn.0040c913
or edi, 0xffffffff
jmp 0x46bc33
mov eax, dword [esp + 0x28]
inc eax
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x48]
push eax
call fcn.00407990
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0xa
call fcn.004025ee
mov byte [esp + 0x80], 4
mov ecx, dword [esp + 0x44]
add ecx, 0xfffffff0
call fcn.00402845
lea ebx, [esp + 0x1c]
call fcn.0040c8c6
mov eax, dword [esi + 8]
mov ecx, ebx
push ecx
push eax
mov ecx, esi
call fcn.0049d2c3
push dword [esp + 0x28]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call fcn.004078ef
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 0xb
call fcn.004025ee
mov byte [esp + 0x80], 4
mov ecx, dword [esp + 0x48]
add ecx, 0xfffffff0
call fcn.00402845
lea ebx, [esp + 0x18]
call fcn.0040c913
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0046d3be
mov ecx, dword [esp + 0x2c]
cmp dword [eax], ecx
jle 0x46bd58
mov ebx, dword [ebp + 8]
jmp 0x46ba57
mov edi, dword [esp + 0x28]
jmp 0x46ba57
lea ecx, [esp + 0x18]
test edi, edi
jl 0x46bd62
inc edi
push edi
lea eax, [esp + 0x50]
push eax
call fcn.00407990
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 6
call fcn.004025ee
mov byte [esp + 0x80], 4
mov ecx, dword [esp + 0x4c]
add ecx, 0xfffffff0
call fcn.00402845
lea ebx, [esp + 0x1c]
call fcn.0040c8c6
mov eax, dword [esi + 8]
mov ecx, ebx
push ecx
push eax
mov ecx, esi
call fcn.0049d2c3
push edi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
call fcn.004078ef
push eax
mov ecx, ebx
mov byte [esp + 0x84], 7
call fcn.004025ee
mov byte [esp + 0x80], 4
mov ecx, dword [esp + 0x50]
add ecx, 0xfffffff0
call fcn.00402845
call fcn.0040c913
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x46bd07
mov ecx, ebx
mov eax, dword [esi + 8]
push ecx
push eax
mov ecx, esi
call fcn.0049d2c3
mov ebx, dword [ebp + 8]
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp eax, dword [ebx + 0x124]
jl 0x46ba0f
cmp dword [ebp + 0x18], 0
mov eax, dword [ebx + 0x138]
mov dword [esp + 0x2c], eax
jne 0x46bded
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx + 0x114]
lea edi, [esp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, dword [esp + 0x68]
and dword [esp + 0x20], 0
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x70], eax
jmp 0x46bde8
lea ecx, [esp + 0x18]
jmp 0x46bcfb
lea ecx, [esp + 0x18]
mov eax, dword [esi + 8]
push ecx
push eax
mov ecx, esi
call fcn.0049d2c3
jmp 0x46bd0a
mov eax, dword [esp + 0x20]
cmp eax, dword [ebx + 0x138]
jge 0x46bded
lea ecx, [ebx + 0x130]
call fcn.00411f7a
push eax
lea ecx, [esp + 0x54]
call fcn.004022fa
cmp dword [ebp + 0x1c], 0
mov byte [esp + 0x80], 0xc
mov esi, dword [esp + 0x50]
jne 0x46bdbd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [esi - 0xc]
push 0x820
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push esi
call dword [edx + 0x68]
push dword [ebx + 0x114]
lea eax, [esp + 0x68]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
inc dword [esp + 0x20]
lea ecx, [esi - 0x10]
mov byte [esp + 0x80], 4
call fcn.00402845
mov eax, dword [esp + 0x70]
cmp eax, dword [edi + 0xc]
jle 0x46bd70
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
call fcn.0049cf06
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x130]
call fcn.0049cf06
mov ebx, dword [ebx + 0x7c]
cmp dword [esp + 0x2c], ebx
jge 0x46be16
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402845
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402845
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.00402845
mov eax, ebx
jmp 0x46be40
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18