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

Disassembly:
mov eax, dword [0xcea35c]
sub esp, 0x94
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov esi, ecx
je 0x51dc4e
mov ecx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push ecx
push eax
lea eax, [esi + 0x4c]
push eax
call edi
test eax, eax
mov ebp, 0x1c7
jne 0x51d97d
mov eax, 0x1b3
mov dword [esp + 0x14], 0x1e3
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov eax, dword [0xcea298]
mov dword [esp + 0x18], 0x1b5
cmp eax, ebx
mov dword [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x1c9
mov dword [esp + 0x24], 0x1a3
mov dword [esp + 0x2c], 0x1c8
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0x21f
mov dword [esp + 0x3c], 0x244
mov dword [esp + 0x40], ebp
je 0x51d97a
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call edi
test eax, eax
jne 0x51d97a
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call edi
test eax, eax
jne 0x51d97a
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call edi
test eax, eax
je 0x51d97d
mov dword [esi + 0x64], ebx
mov eax, dword [esi + 0x78]
mov dword [esp + 0x10], ebx
cmp eax, ebx
jle 0x51dc4e
jmp 0x51d994
mov edi, dword [sym.imp.USER32.dll_PtInRect]
mov edx, dword [0xcf95d4]
mov eax, dword [esi + 0x68]
mov ecx, dword [0xcf95d0]
add eax, ebx
push edx
push ecx
push eax
call edi
mov edi, dword [esi + 0x68]
test eax, eax
je 0x51da95
mov eax, 0x1b3
add edi, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [0xcea298]
mov dword [esp + 0x34], 0x1e3
test eax, eax
mov dword [esp + 0x38], 0x1b5
mov dword [esp + 0x3c], 0x208
mov dword [esp + 0x40], 0x1c9
mov dword [esp + 0x24], 0x1a3
mov dword [esp + 0x2c], 0x1c8
mov dword [esp + 0x30], ebp
mov dword [esp + 0x14], 0x21f
mov dword [esp + 0x1c], 0x244
mov dword [esp + 0x20], ebp
je 0x51da70
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x51da70
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x51da70
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x51dc37
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x51da89
mov ecx, dword [0x62d4c4]
add ecx, 0x37
push ecx
call fcn.00575a50
add esp, 4
mov dword [edi + 0x14], 1
jmp 0x51dc37
mov ecx, dword [0xcea298]
add edi, ebx
mov eax, 0x1b3
mov dword [esp + 0x44], 0x1e3
test ecx, ecx
mov dword [esp + 0x48], 0x1b5
mov dword [esp + 0x4c], 0x208
mov dword [esp + 0x50], 0x1c9
mov dword [esp + 0x64], 0x1a3
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0x1c8
mov dword [esp + 0x70], ebp
mov dword [esp + 0x84], 0x21f
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0x244
mov dword [esp + 0x90], ebp
je 0x51db5e
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x51db59
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x51db59
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x51db67
mov eax, 0x1b3
mov dword [edi + 0x14], 0
jmp 0x51db6c
mov eax, 0x1b3
mov edi, dword [esi + 0x68]
mov dword [esp + 0x78], eax
mov dword [esp + 0x98], eax
mov eax, dword [0xcea298]
add edi, ebx
mov dword [esp + 0x54], 0x1e3
test eax, eax
mov dword [esp + 0x58], 0x1b5
mov dword [esp + 0x5c], 0x208
mov dword [esp + 0x60], 0x1c9
mov dword [esp + 0x74], 0x1a3
mov dword [esp + 0x7c], 0x1c8
mov dword [esp + 0x80], ebp
mov dword [esp + 0x94], 0x21f
mov dword [esp + 0x9c], 0x244
mov dword [esp + 0xa0], ebp
je 0x51dc30
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x51dc30
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x51dc30
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x51dc37
mov dword [edi + 0x18], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
inc eax
add ebx, 0x1c
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x51d98e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret