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

Disassembly:
mov eax, dword [0xcea35c]
sub esp, 0x94
test eax, eax
push ebx
push ebp
push edi
mov edi, ecx
je 0x51d798
mov ecx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
push ecx
push eax
lea eax, [edi + 0x4c]
push eax
call ebx
test eax, eax
je 0x51d4c7
mov eax, 0x1b3
mov ebp, 0x1c7
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov eax, dword [0xcea298]
mov dword [esp + 0x10], 0x1e3
test eax, eax
mov dword [esp + 0x14], 0x1b5
mov dword [esp + 0x18], 0x208
mov dword [esp + 0x1c], 0x1c9
mov dword [esp + 0x20], 0x1a3
mov dword [esp + 0x28], 0x1c8
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0x21f
mov dword [esp + 0x38], 0x244
mov dword [esp + 0x3c], ebp
je 0x51d4bb
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call ebx
test eax, eax
jne 0x51d4bb
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call ebx
test eax, eax
jne 0x51d4bb
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call ebx
test eax, eax
je 0x51d57c
mov dword [edi + 0x64], 1
jmp 0x51d57c
mov eax, 0x1b3
mov ebp, 0x1c7
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov eax, dword [0xcea298]
mov dword [esp + 0x30], 0x1e3
test eax, eax
mov dword [esp + 0x34], 0x1b5
mov dword [esp + 0x38], 0x208
mov dword [esp + 0x3c], 0x1c9
mov dword [esp + 0x20], 0x1a3
mov dword [esp + 0x28], 0x1c8
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x10], 0x21f
mov dword [esp + 0x18], 0x244
mov dword [esp + 0x1c], ebp
je 0x51d575
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call ebx
test eax, eax
jne 0x51d575
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call ebx
test eax, eax
jne 0x51d575
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call ebx
test eax, eax
je 0x51d57c
mov dword [edi + 0x64], 0
mov ecx, dword [edi + 0x78]
xor eax, eax
test ecx, ecx
mov dword [esp + 0xc], eax
jle 0x51d798
push esi
jmp 0x51d594
mov eax, dword [esp + 0x10]
mov edx, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
lea esi, [eax*8]
push edx
sub esi, eax
push ecx
shl esi, 2
mov eax, esi
add eax, dword [edi + 0x68]
push eax
call ebx
test eax, eax
je 0x51d7bb
mov ecx, dword [edi + 0x68]
mov eax, 0x1b3
mov ebx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [0xcea298]
add ebx, ecx
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 0x51d67a
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 0x51d67a
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 0x51d67a
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 0x51d693
mov ecx, dword [0x62d4c4]
add ecx, 0x40
push ecx
call fcn.00575a50
add esp, 4
mov dword [ebx + 0x18], 1
mov ecx, dword [edi + 0x68]
mov eax, 0x1b3
mov dword [esp + 0x68], eax
mov dword [esp + 0x88], eax
mov eax, dword [0xcea298]
add esi, ecx
test eax, eax
mov dword [esp + 0x44], 0x1e3
mov dword [esp + 0x48], 0x1b5
mov dword [esp + 0x4c], 0x208
mov dword [esp + 0x50], 0x1c9
mov dword [esp + 0x64], 0x1a3
mov dword [esp + 0x6c], 0x1c8
mov dword [esp + 0x70], ebp
mov dword [esp + 0x84], 0x21f
mov dword [esp + 0x8c], 0x244
mov dword [esp + 0x90], ebp
je 0x51d753
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
call ebx
test eax, eax
jne 0x51d753
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
call ebx
test eax, eax
jne 0x51d753
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
call ebx
test eax, eax
je 0x51d75a
mov dword [esi + 0x18], 1
mov eax, dword [esp + 0x10]
sub eax, 5
je 0x51d7a2
dec eax
jne 0x51d77d
push 1
lea ecx, [edi + 0xe0]
call fcn.0042acb0
push 0
lea ecx, [edi + 0x7c]
call fcn.0042a1e0
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x78]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x51d590
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x94
ret
push 1
lea ecx, [edi + 0x7c]
call fcn.0042a1e0
push 0
lea ecx, [edi + 0xe0]
call fcn.0042acb0
jmp 0x51d77d
mov ecx, dword [edi + 0x68]
mov eax, 0x1b3
mov dword [esp + 0x78], eax
mov dword [esp + 0x98], eax
mov eax, dword [0xcea298]
add esi, ecx
test eax, eax
mov dword [esp + 0x54], 0x1e3
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 0x51d87c
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
call ebx
test eax, eax
jne 0x51d87c
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x78]
push eax
push ecx
call ebx
test eax, eax
jne 0x51d87c
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x98]
push eax
push ecx
call ebx
test eax, eax
je 0x51d783
mov dword [esi + 0x18], 0
jmp 0x51d783