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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ae8a7
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
cmp dword [ecx + 0x6c], 0
jne 0x559129
mov eax, 0x80004005
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [esp + 0x2c]
lea edi, [esp + 0x94]
call fcn.00554ee0
mov esi, dword [esi + 0x6c]
lea edi, [esp + 0xa4]
call fcn.00554ee0
mov ecx, edi
push ecx
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x110]
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
lea ecx, [esp + 0x74]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x68]
push ecx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
mov ecx, esi
sar edi, 1
sar ebx, 1
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
mov dword [esp + 0x28], 0
call edx
mov ecx, dword [eax]
sub ecx, dword [eax + 8]
add ecx, dword [esp + 0x84]
lea edx, [ecx + edi - 0x14]
cmp dword [esp + 0x1c], edx
jge 0x5591e0
mov dword [esp + 0x24], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call edx
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 0xc]
add ecx, dword [esp + 0x88]
lea edx, [ecx + ebx - 0x14]
cmp dword [esp + 0x20], edx
jge 0x55920d
mov dword [esp + 0x24], 2
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
lea ecx, [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push ecx
mov ecx, esi
call edx
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
sub ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x8c]
add ecx, edi
cmp dword [esp + 0x1c], ecx
jle 0x559247
mov dword [esp + 0x24], 3
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x78]
mov edx, dword [esi]
mov edx, dword [edx + 0x50]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call edx
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
sub ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x90]
add ecx, ebx
cmp dword [esp + 0x20], ecx
jle 0x559285
mov dword [esp + 0x24], 4
mov eax, dword [esi + 0x15c]
sub eax, dword [esp + 0x94]
mov ecx, dword [esi + 0x160]
sub ecx, dword [esp + 0x98]
add dword [esp + 0x1c], eax
mov edx, dword [esi]
add dword [esp + 0x20], ecx
mov edx, dword [edx + 0x84]
lea eax, [esp + 0xb4]
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 0x54]
push ecx
push edx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x1c], edi
add dword [esp + 0x20], ebx
lea edx, [esp + 0x34]
add ecx, 0x54
push edx
mov dword [esp + 0x34], ecx
call fcn.00427420
xor eax, eax
mov dword [esp + 0xd0], eax
mov edi, dword [esp + 0x40]
mov dword [esp + 0x10], eax
cmp edi, dword [esp + 0x44]
jbe 0x559307
call fcn.00588c45
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], edi
nop
mov edi, dword [esp + 0x44]
cmp dword [esp + 0x40], edi
jbe 0x55931f
call fcn.00588c45
test ebx, ebx
je 0x559329
cmp ebx, dword [esp + 0x34]
je 0x55932e
call fcn.00588c45
cmp dword [esp + 0x18], edi
je 0x559390
test ebx, ebx
jne 0x559379
call fcn.00588c45
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x55934d
call fcn.00588c45
mov eax, dword [esp + 0x18]
cmp dword [eax], esi
je 0x559381
inc dword [esp + 0x10]
test ebx, ebx
jne 0x55937d
call fcn.00588c45
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x10]
jb 0x559372
call fcn.00588c45
add dword [esp + 0x18], 4
jmp 0x559310
mov eax, dword [ebx]
jmp 0x55933f
mov eax, dword [ebx]
jmp 0x559364
push eax
push ebx
lea ebx, [esp + 0x1c]
lea edi, [esp + 0x3c]
call fcn.004223b0
mov edi, dword [esp + 0x40]
mov dword [esp + 0x4c], 0
cmp edi, dword [esp + 0x44]
jbe 0x5593a7
call fcn.00588c45
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x44]
cmp dword [esp + 0x40], edi
jbe 0x5593c2
call fcn.00588c45
test ebx, ebx
je 0x5593cc
cmp ebx, dword [esp + 0x34]
je 0x5593d1
call fcn.00588c45
cmp dword [esp + 0x18], edi
je 0x55964b
test ebx, ebx
jne 0x55949f
call fcn.00588c45
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x5593f8
call fcn.00588c45
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
xor ecx, ecx
mov dword [esp + 0x28], ecx
test eax, eax
je 0x55941d
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x5cd4d0
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xd0], 1
test ecx, ecx
je 0x559464
mov edx, dword [ecx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x54]
push eax
call edx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0xb8]
call edx
test eax, eax
je 0x559460
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x5594aa
mov ecx, dword [esp + 0x28]
inc dword [esp + 0x4c]
mov byte [esp + 0xd0], 0
test ecx, ecx
je 0x55947c
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
test ebx, ebx
jne 0x5594a6
call fcn.00588c45
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x10]
jb 0x559495
call fcn.00588c45
add dword [esp + 0x18], 4
jmp 0x5593b3
mov eax, dword [ebx]
jmp 0x5593ea
mov eax, dword [ebx]
jmp 0x559487
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x10]
push esi
mov dword [esp + 0x14], esi
jge 0x5594f6
mov eax, dword [esi]
mov ecx, dword [eax + 4]
call ecx
mov byte [esp + 0xd0], 2
mov edx, dword [esp + 0x18]
push edx
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x44]
call fcn.004276c0
mov byte [esp + 0xd0], 1
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
jmp 0x559593
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x44]
sar ecx, 2
dec ecx
cmp eax, ecx
jne 0x559524
mov edx, dword [esi]
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x10]
lea edi, [esp + 0x34]
mov byte [esp + 0xd0], 3
call fcn.00427640
jmp 0x559583
mov eax, dword [esi]
mov ecx, dword [eax + 4]
call ecx
mov byte [esp + 0xd0], 4
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x50], edi
test ecx, ecx
jne 0x55955e
call fcn.00588c45
mov ecx, dword [esp + 0x14]
xor eax, eax
add edi, 4
cmp edi, dword [eax + 0x10]
ja 0x559569
test ecx, ecx
je 0x559562
mov eax, dword [ecx]
jmp 0x559564
mov eax, dword [ecx]
jmp 0x55954e
xor eax, eax
cmp edi, dword [eax + 0xc]
jae 0x55956e
call fcn.00588c45
push edi
push ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
call fcn.004276c0
mov byte [esp + 0xd0], 1
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov byte [esp + 0xd0], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5595ab
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x10], eax
cmp dword [ecx + 0xc], eax
jbe 0x5595c0
call fcn.00588c45
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax]
cmp edi, dword [eax + 0x10]
jbe 0x5595d3
call fcn.00588c45
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
push edx
push ebx
push edi
push eax
lea eax, [esp + 0x24]
push eax
mov edi, ecx
call fcn.00424e40
lea ecx, [esp + 0x34]
push ecx
mov edx, edi
push edx
call fcn.00427520
mov edi, dword [esp + 0x2c]
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
mov ecx, edi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
mov ecx, esi
call edx
test eax, eax
je 0x559658
mov ebx, dword [esi + 0x84]
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esi + 0x88]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 0x8c]
mov dword [eax + 8], ebx
mov ebx, dword [esi + 0x90]
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x2c]
call eax
jmp 0x559658
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
mov ecx, esi
call eax
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
xor ebx, ebx
cmp eax, ebx
je 0x559677
mov edx, dword [edi]
push esi
mov dword [edi + 0x1c0], eax
mov eax, dword [edx + 0x24]
push 0x515
mov ecx, edi
call eax
mov dword [esp + 0xd0], 0xffffffff
mov esi, dword [esp + 0x40]
cmp esi, ebx
je 0x5596b6
mov eax, dword [esp + 0x44]
mov edi, eax
cmp esi, eax
je 0x5596ad
mov eax, dword [esi]
cmp eax, ebx
je 0x5596a2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add esi, 4
cmp esi, edi
jne 0x559694
mov esi, dword [esp + 0x40]
push esi
call fcn.005851f0
add esp, 4
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.005851f0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8