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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
xor esi, esi
cmp eax, 5
push edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc], esi
je 0x4ac2b6
push esi
lea edx, [esp + 0x2c]
push edx
lea ecx, [ebx + 0x28]
call fcn.0046e2d0
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x4ac2b6
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x78], 9
jne 0x4ac2b0
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x128]
test ah, 4
jne case.default.0x4ac2e8
mov dword [esp + 0x14], esi
jmp 0x4ac2c0
mov eax, dword [ebx + 0x108]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
je 0x4ac2db
mov ecx, eax
call fcn.004811c0
mov edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 8]
dec eax
cmp eax, 4
ja case.default.0x4ac2e8
jmp dword [eax*4 + 0x4ac9a8]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
mov eax, dword [ebx + 0x70c]
and esi, 0x7fffffff
test eax, eax
je 0x4ac32f
mov eax, dword [ebx + 0x708]
test eax, eax
je 0x4ac32f
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
sub esi, dword [ebx + 0x70c]
cmp esi, eax
jle 0x4ac32f
xor eax, eax
mov dword [ebx + 0x70c], eax
mov dword [ebx + 0x708], eax
cmp dword [ebp + 8], 1
jne 0x4ac372
test edi, edi
je 0x4ac368
fild dword [ebp + 0x10]
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x3e4]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push ecx
mov ecx, edi
call fcn.00527eb0
mov dword [ebx + 0x70c], 0
mov ecx, dword [ebx + 0x700]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x14], esi
je 0x4ac38d
call fcn.004811c0
mov esi, eax
mov dword [esp + 0x14], esi
xor eax, eax
cmp edi, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
je 0x4ac3ab
lea edx, [esp + 0x3c]
push edx
mov ecx, edi
call fcn.005264e0
xor ecx, ecx
xor eax, eax
test esi, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
je 0x4ac3e7
mov ecx, esi
call fcn.005261a0
test al, al
je 0x4ac3df
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.005264e0
mov eax, dword [esp + 0x30]
jmp 0x4ac485
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [ebx + 0x710]
test edx, edx
je 0x4ac485
xor edi, edi
test edx, edx
jbe 0x4ac452
jmp 0x4ac401
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx + 0x718]
mov esi, dword [edx + edi*4]
lea edx, [eax + 1]
cmp edx, ecx
jbe 0x4ac437
test ecx, ecx
je 0x4ac41e
lea eax, [ecx + ecx]
mov dword [esp + 0x34], eax
jmp 0x4ac426
mov dword [esp + 0x34], 0x80
lea ecx, [esp + 0x30]
call fcn.004a7ac0
test al, al
mov eax, dword [esp + 0x30]
je 0x4ac447
mov ecx, dword [esp + 0x38]
mov dword [ecx + eax*4], esi
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
mov ecx, dword [ebx + 0x710]
inc edi
cmp edi, ecx
jb 0x4ac3fd
mov ecx, dword [ebx + 0x718]
xor esi, esi
cmp ecx, esi
je 0x4ac471
push ecx
call fcn.0043f0a0
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [ebx + 0x718], esi
mov edi, dword [esp + 0x10]
mov dword [ebx + 0x714], esi
mov dword [ebx + 0x710], esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4ac4c2
test eax, eax
je 0x4ac4bb
test eax, eax
je 0x4ac4cb
mov edx, dword [esp + 0x44]
mov ecx, dword [edx + ecx*4 - 4]
mov edx, dword [esp + 0x38]
cmp ecx, dword [edx + eax*4 - 4]
jne 0x4ac4cb
mov ecx, dword [esp + 0x3c]
dec ecx
dec eax
test ecx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], eax
jne 0x4ac491
jmp 0x4ac4cb
dec ecx
mov dword [esp + 0x3c], ecx
jmp 0x4ac4cb
test eax, eax
je 0x4ac4cb
dec eax
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4ac6fe
mov eax, dword [ebx + 0x700]
test eax, eax
je 0x4ac664
cmp ecx, eax
je 0x4ac7ae
test esi, esi
je 0x4ac5ac
fild dword [ebp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
fstp qword [esp + 0x18]
fild dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
mov esi, dword [edx + 0x3e8]
push 0
fstp qword [esp + 0x24]
call fcn.004811c0
fld qword [esp + 0x1c]
push eax
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fld qword [esp + 0x38]
fstp qword [esp]
push 0
push 1
push esi
call fcn.00527eb0
mov eax, dword [esp + 0x30]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], edi
jbe 0x4ac5ac
mov edi, edi
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + edi*4]
call fcn.004811c0
mov esi, eax
test esi, esi
je 0x4ac59f
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0xc]
mov edi, dword [eax + 0x424]
push 0
call fcn.004811c0
fld qword [esp + 0x1c]
push eax
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [esp + 0x38]
fstp qword [esp]
push 0
push 0
push edi
call fcn.00527eb0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jb 0x4ac550
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ac655
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x14], eax
js 0x4ac618
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + edx*4]
call fcn.004811c0
mov esi, eax
test esi, esi
je 0x4ac612
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebx + 0x700]
mov edi, dword [edx + 0x428]
push 0
call fcn.004811c0
fild dword [ebp + 0x10]
push eax
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 0
push edi
call fcn.00527eb0
dec dword [esp + 0x14]
jns 0x4ac5c3
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebx + 0x700]
mov edi, dword [edx + 0x3ec]
push 0
call fcn.004811c0
fild dword [ebp + 0x10]
push eax
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edi
call fcn.00527eb0
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x700], eax
jmp 0x4ac7ae
test edi, edi
mov dword [ebx + 0x700], ecx
je 0x4ac7ae
mov eax, dword [esp + 0x3c]
xor esi, esi
test eax, eax
jbe 0x4ac6c8
lea esp, [esp]
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + esi*4]
call fcn.004811c0
test eax, eax
je 0x4ac6bf
fild dword [ebp + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [edx + 0x18]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 0x428]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 0
push ecx
mov ecx, eax
call fcn.00527eb0
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
jb 0x4ac680
fild dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + 0x10]
mov eax, dword [edx + 0x3ec]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push eax
call fcn.00527eb0
jmp 0x4ac7ae
mov eax, dword [ebx + 0x700]
test eax, eax
je 0x4ac7ae
test esi, esi
je 0x4ac7a4
fild dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + 0x10]
fstp qword [esp + 0x18]
fild dword [ebp + 0xc]
mov eax, dword [edx + 0x3e8]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 0x38]
fld qword [esp + 0x30]
fstp qword [esp + 8]
fld qword [esp + 0x38]
fstp qword [esp]
push 0
push 1
push eax
call fcn.00527eb0
mov esi, dword [esp + 0x30]
dec esi
js 0x4ac7a4
lea esp, [esp]
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + esi*4]
call fcn.004811c0
test eax, eax
je 0x4ac7a1
fld qword [esp + 0x18]
mov edx, dword [eax + 8]
mov ecx, dword [edx + 0x18]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 0x424]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x38]
fstp qword [esp]
push 0
push 0
push ecx
mov ecx, eax
call fcn.00527eb0
dec esi
jns 0x4ac760
mov dword [ebx + 0x700], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4ac7c9
mov edx, eax
push edx
call fcn.0043f0a0
add esp, 4
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
je case.default.0x4ac2e8
mov eax, ecx
push eax
call fcn.0043f0a0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x704], ecx
je case.default.0x4ac2e8
fild dword [ebp + 0x10]
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x3d8]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.00527eb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x4ac870
fild dword [ebp + 0x10]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x3f0]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push eax
call fcn.00527eb0
test esi, esi
mov ecx, dword [esp + 0xc]
mov edi, ecx
jne 0x4ac880
mov edi, dword [ebx + 0x108]
xor esi, esi
cmp edi, esi
je 0x4ac932
cmp edi, dword [ebx + 0x704]
je 0x4ac8b1
cmp ecx, esi
je 0x4ac932
cmp ecx, dword [esp + 0x14]
jne 0x4ac932
call fcn.00482530
test eax, eax
je 0x4ac932
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
mov eax, dword [ebx + 0x708]
and esi, 0x7fffffff
cmp edi, eax
jne 0x4ac951
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov edx, dword [ebx + 0x70c]
mov ecx, esi
sub ecx, edx
cmp ecx, eax
jge 0x4ac957
mov ecx, edi
call fcn.004811c0
test eax, eax
je 0x4ac957
mov ecx, edi
call fcn.004811c0
mov edx, dword [eax + 0x38]
shr edx, 6
test dl, 1
je 0x4ac957
mov ecx, dword [esp + 0x10]
xor esi, esi
cmp ecx, esi
je 0x4ac932
fild dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x39c]
push esi
push esi
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push esi
push 1
push edx
call fcn.00527eb0
mov dword [ebx + 0x70c], esi
mov dword [ebx + 0x708], esi
mov dword [ebx + 0x704], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 0x708], edi
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov dword [ebx + 0x70c], esi
je 0x4ac93e
fild dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x384]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.00527eb0
pop edi
pop esi
mov dword [ebx + 0x704], 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc