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

Disassembly:
mov eax, dword [0xcea35c]
sub esp, 0x3c
push ebx
push ebp
xor ebx, ebx
push esi
push edi
cmp eax, ebx
mov edi, ecx
je 0x51dfb9
mov ecx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
mov esi, dword [sym.imp.USER32.dll_PtInRect]
push ecx
push eax
lea eax, [edi + 0x4c]
push eax
call esi
test eax, eax
mov ebp, 0x1c7
je 0x51dd82
mov eax, 0x1b3
mov dword [esp + 0x1c], 0x1e3
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], eax
mov eax, dword [0xcea298]
mov dword [esp + 0x20], 0x1b5
cmp eax, ebx
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x28], 0x1c9
mov dword [esp + 0x2c], 0x1a3
mov dword [esp + 0x34], 0x1c8
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0x21f
mov dword [esp + 0x44], 0x244
mov dword [esp + 0x48], ebp
je 0x51dd47
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call esi
test eax, eax
jne 0x51dd47
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call esi
test eax, eax
jne 0x51dd47
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call esi
test eax, eax
je 0x51dd4a
mov dword [edi + 0x64], ebx
call fcn.004310f0
cmp dword [edi + 0x1c], ebx
je 0x51dd82
mov ecx, dword [edi + 0x70]
lea eax, [edi + 0x70]
cmp ecx, ebx
mov dword [edi + 0x1c], ebx
je 0x51dd70
push ebx
lea ecx, [edi + 0x74]
push ebx
push ecx
push eax
call fcn.005a6840
add esp, 0x10
mov eax, dword [0xd0af88]
cmp eax, ebx
je 0x51dd82
push eax
call fcn.004e6ba0
add esp, 4
cmp dword [edi + 0x78], ebx
jle 0x51dfb9
mov edx, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
lea esi, [ebx*8]
push edx
sub esi, ebx
push ecx
shl esi, 2
mov eax, esi
add eax, dword [edi + 0x68]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x51dfad
mov edx, dword [edi + 0x68]
mov eax, dword [esi + edx + 0x18]
test eax, eax
je 0x51dfad
cmp ebx, 4
ja case.default.0x51ddd1
jmp dword [ebx*4 + 0x51dfc4]
cmp dword [0x6d68d0], 0x186a0
jl 0x51dfb9
mov eax, dword [0xa4f274]
push 0x614
test eax, eax
je 0x51de08
push 0x66a708
call fcn.004fe420
add esp, 8
jmp case.default.0x51ddd1
push 0x66a6e8
call fcn.004fe420
add esp, 8
jmp case.default.0x51ddd1
mov eax, 1
push 4
mov dword [edi + 0x27c8], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0xdd2
jmp 0x51dee4
mov eax, dword [edi + 0x27c8]
cmp eax, 1
jg 0x51de5f
push 0
push 0
push 0
push 0
push 0x66a6d0
call fcn.004cbc90
add esp, 0x14
jmp case.default.0x51ddd1
mov ecx, dword [edi + 0x27d8]
dec eax
mov dword [edi + 0x27c8], eax
lea edx, [eax + eax*4]
mov eax, ecx
shl edx, 1
sub eax, edx
add eax, 0xa
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x51de87
sub eax, 0xa
mov dword [esp + 0x10], eax
push 4
lea eax, [esp + 0x14]
jmp 0x51dede
mov eax, dword [edi + 0x27c8]
mov ecx, dword [edi + 0x27cc]
cmp eax, ecx
jl 0x51deb6
push 0
push 0
push 0
push 0
push 0x66a6b8
call fcn.004cbc90
add esp, 0x14
jmp case.default.0x51ddd1
mov edx, dword [edi + 0x27d8]
inc eax
mov dword [edi + 0x27c8], eax
lea ecx, [eax + eax*4]
shl ecx, 1
sub edx, ecx
mov dword [esp + 0x14], edx
jns 0x51ded8
mov dword [esp + 0x14], 0
push 4
lea eax, [esp + 0x18]
push eax
push 0xdd3
call fcn.004ac410
add esp, 0xc
mov ecx, dword [edi + 0x68]
mov eax, 0x1b3
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov eax, dword [0xcea298]
add esi, ecx
test eax, eax
mov dword [esp + 0x3c], 0x1e3
mov dword [esp + 0x40], 0x1b5
mov dword [esp + 0x44], 0x208
mov dword [esp + 0x48], 0x1c9
mov dword [esp + 0x2c], 0x1a3
mov dword [esp + 0x34], 0x1c8
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], 0x21f
mov dword [esp + 0x24], 0x244
mov dword [esp + 0x28], ebp
je 0x51dfa6
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x51dfa6
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x51dfa6
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x51dfad
mov dword [esi + 0x18], 0
mov eax, dword [edi + 0x78]
inc ebx
cmp ebx, eax
jl 0x51dd8b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret