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

Disassembly:
push 0xffffffffffffffff
push 0x59b2f9
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60aecc]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [edi + 0x18], esi
jne 0x4a61cc
mov eax, dword [str.hittestchildren]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00496da0
call fcn.00401000
add esp, 4
test al, al
je 0x4a64a7
cmp byte [edi + 0x10], 0
je 0x4a64a7
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xcc]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
push eax
push ecx
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call edx
mov ebp, dword [esp + 0xc8]
mov eax, dword [ebp]
cmp eax, dword [esp + 0x40]
jl 0x4a64a7
cmp eax, dword [esp + 0x48]
jge 0x4a64a7
mov eax, dword [ebp + 4]
cmp eax, dword [esp + 0x44]
jl 0x4a64a7
cmp eax, dword [esp + 0x4c]
jge 0x4a64a7
cmp dword [esp + 0xd0], esi
jge 0x4a6239
mov al, 1
jmp 0x4a64a9
cmp dword [0x6142a8], esi
mov ebx, 1
jne 0x4a627e
push ebx
push 4
lea eax, [esp + 0x28]
push 4
push eax
call fcn.004d8b40
add esp, 0x10
push eax
mov ecx, 0x6142a8
mov dword [esp + 0xc4], esi
call fcn.00414470
lea ecx, [esp + 0x20]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00401370
call fcn.0049d890
mov edx, dword [0x6142a8]
mov esi, eax
mov eax, dword [0x6142ac]
test eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
je 0x4a629f
add dword [eax + 4], ebx
push 4
sub esp, 8
test eax, eax
mov ecx, esp
mov dword [ecx], edx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0x28], esp
mov dword [ecx + 4], eax
je 0x4a62bd
add dword [eax + 4], ebx
mov ecx, esi
call fcn.0049cc00
test al, al
je 0x4a6493
sub esp, 8
mov eax, esp
mov dword [eax], 0
mov dword [esp + 0x24], esp
mov dword [eax + 4], 0
fldz
fst dword [esp + 0x58]
mov eax, 2
fst dword [esp + 0x5c]
lea ecx, [esp + 0x38]
fst dword [esp + 0x60]
mov byte [esp + 0xc8], al
fstp dword [esp + 0x64]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.004d6a00
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
mov byte [esp + 0xd0], bl
call fcn.0049cd10
call fcn.0049d890
mov ecx, eax
call fcn.0049c470
mov byte [esp + 0x16], al
mov eax, dword [esp + 0xcc]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xc4], 3
call fcn.0048a500
fld dword [esp + 0x78]
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
sub ecx, ebx
mov dword [esp + 0x18], ecx
fisub dword [esp + 0x18]
mov ecx, dword [esp + 0xd4]
sub edx, ebx
mov dword [esp + 0x18], edx
push ecx
lea edx, [esp + 0x64]
push edx
fstp dword [esp + 0x80]
mov ecx, edi
fld dword [esp + 0x84]
fisub dword [esp + 0x20]
fstp dword [esp + 0x84]
call eax
lea ecx, [esp + 0x16]
mov byte [esp + 0xc0], bl
call fcn.0049d940
mov ecx, esi
call fcn.0049c5f0
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
mov byte [esp + 0x1e], 0
call fcn.004d6e70
test al, al
je 0x4a6479
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.16bitmode
call fcn.00496da0
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0xc8], 4
call fcn.0049d890
mov ecx, eax
mov byte [esp + 0xc8], bl
call fcn.0049c7e0
mov ecx, eax
mov byte [esp + 0xc0], 5
mov dword [esp + 0x18], ebx
call fcn.00497000
test eax, eax
mov edi, dword [esp + 0xd0]
je 0x4a6437
cmp edi, 0xf0
mov byte [esp + 0x17], bl
jg 0x4a643c
mov byte [esp + 0x17], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc0], ebx
call fcn.00497320
cmp byte [esp + 0x17], 0
je 0x4a6456
and edi, 0xfffffff0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea ecx, [edx + ecx*4 + 4]
call fcn.00498b40
movzx eax, al
cmp eax, edi
jl 0x4a6472
mov byte [esp + 0x16], bl
mov ecx, esi
call fcn.004d6e80
lea ecx, [esp + 0x20]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00401370
mov al, byte [esp + 0x16]
jmp 0x4a64a9
lea ecx, [esp + 0x20]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00401370
xor al, al
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 0x10