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

Disassembly:
push 0xffffffffffffffff
push 0x627f18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x378]
lea ecx, [esi + 0x188]
add eax, 0x1c
push eax
call fcn.005dfc66
mov eax, dword [esi + 0x378]
add eax, 0x20
mov ecx, dword [eax]
test ecx, ecx
je 0x516139
push eax
lea ecx, [esi + 0x14c]
call fcn.005dfc66
mov ecx, dword [esi + 0x378]
push edi
add ecx, 0x24
push ecx
lea ecx, [esi + 0x1c4]
call fcn.005dfc66
mov edx, dword [esi + 0x378]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov eax, dword [edx + 0x28]
and eax, 1
push eax
mov eax, dword [esi + 0x344]
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x378]
mov edx, dword [esi + 0x304]
push 0
mov eax, dword [ecx + 0x28]
and eax, 2
push eax
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x378]
mov ecx, dword [esi + 0x2f4]
push 0
mov eax, dword [eax + 0x28]
and eax, 4
push eax
push 0xf1
push ecx
call edi
mov edx, dword [esi + 0x378]
push 0
mov eax, dword [edx + 0x28]
and eax, 8
push eax
mov eax, dword [esi + 0x314]
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x378]
mov edx, dword [esi + 0x2e4]
push 0
mov eax, dword [ecx + 0x28]
and eax, 0x10
push eax
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x378]
mov ecx, dword [esi + 0x334]
push 0
mov eax, dword [eax + 0x28]
and eax, 0x20
push eax
push 0xf1
push ecx
call edi
mov edx, dword [esi + 0x378]
push 0
mov eax, dword [edx + 0x28]
and eax, 0x40
push eax
mov eax, dword [esi + 0x324]
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x378]
push 0
mov al, byte [ecx + 0x19]
test al, al
je 0x51623f
mov edx, dword [esi + 0x2d4]
push 1
push 0xf1
push edx
jmp 0x516268
mov eax, dword [esi + 0x2d4]
push 0
push 0xf1
push eax
call edi
push 0x4c5
mov ecx, esi
call fcn.00602ea0
mov ecx, dword [eax + 0x1c]
push 0
push 1
push 0xf1
push ecx
call edi
mov edx, dword [esi + 0x378]
xor eax, eax
push ebx
push 0
mov al, byte [edx + 0x1a]
push eax
mov eax, dword [esi + 0x364]
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x378]
mov edx, dword [esi + 0x354]
xor eax, eax
push 0
mov al, byte [ecx + 0x1b]
push eax
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x378]
mov edx, dword [esi + 0x294]
xor ecx, ecx
push 0
mov cl, byte [eax + 0x15]
mov eax, ecx
push eax
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x378]
mov edx, dword [esi + 0x2b4]
xor ecx, ecx
push 0
mov cl, byte [eax + 0x17]
mov eax, ecx
push eax
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x378]
mov edx, dword [esi + 0x2a4]
xor ecx, ecx
push 0
mov cl, byte [eax + 0x16]
mov eax, ecx
push eax
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x378]
mov edx, dword [esi + 0x2c4]
xor ecx, ecx
push 0
mov cl, byte [eax + 0x18]
mov eax, ecx
push eax
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x78]
xor ebx, ebx
push ebx
push ebx
push 0x146
push eax
call edi
test eax, eax
jle 0x516369
mov ecx, dword [esi + 0x78]
push 0
push ebx
push 0x150
push ecx
call edi
mov edx, dword [esi + 0x378]
cmp dword [edx + 0x3c], eax
jne 0x516355
mov eax, dword [esi + 0x78]
push 0
push ebx
push 0x14e
push eax
call edi
mov ecx, dword [esi + 0x78]
push 0
push 0
push 0x146
push ecx
inc ebx
call edi
cmp ebx, eax
jl 0x51632e
mov edx, dword [esi + 0x378]
pop ebx
push 0
mov al, byte [edx + 8]
test al, al
je 0x516389
mov eax, dword [esi + 0x244]
push 1
push 0xf1
push eax
jmp 0x5163b2
mov ecx, dword [esi + 0x244]
push 0
push 0xf1
push ecx
call edi
push 0x630
mov ecx, esi
call fcn.00602ea0
mov edx, dword [eax + 0x1c]
push 0
push 1
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x378]
push 0
cmp dword [eax + 4], 1
jne 0x5163d2
mov ecx, dword [esi + 0x254]
push 1
push 0xf1
push ecx
jmp 0x5163e0
mov edx, dword [esi + 0x254]
push 0
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x378]
push 0x632
mov ecx, dword [eax + 4]
cmp ecx, 2
mov ecx, esi
jne 0x51640b
call fcn.00602ea0
mov ecx, dword [eax + 0x1c]
push 0
push 1
push 0xf1
push ecx
jmp 0x51641d
call fcn.00602ea0
mov edx, dword [eax + 0x1c]
push 0
push 0
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x378]
push 0x633
mov ecx, dword [eax + 4]
cmp ecx, 3
mov ecx, esi
jne 0x516448
call fcn.00602ea0
mov ecx, dword [eax + 0x1c]
push 0
push 1
push 0xf1
push ecx
jmp 0x51645a
call fcn.00602ea0
mov edx, dword [eax + 0x1c]
push 0
push 0
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x378]
mov edx, dword [esi + 0x234]
xor ecx, ecx
push 0
mov cl, byte [eax + 9]
mov eax, ecx
push eax
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x378]
mov cl, byte [eax + 9]
test cl, cl
je 0x51651b
mov ecx, dword [0x6cd768]
mov dword [esp + 8], ecx
mov ecx, dword [eax + 0xc]
mov eax, 0x88888889
imul ecx
add edx, ecx
lea ecx, [esp + 8]
sar edx, 5
mov eax, edx
mov dword [esp + 0x14], 0
shr eax, 0x1f
add edx, eax
push edx
push 0x6a10e4
push ecx
call fcn.005fc86b
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esi + 0xd4]
push edx
call fcn.00603022
mov eax, dword [esi + 0x378]
mov ecx, 0x3c
mov eax, dword [eax + 0xc]
cdq
idiv ecx
push edx
lea edx, [esp + 0xc]
push 0x6a10e4
push edx
call fcn.005fc86b
mov eax, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esi + 0x98]
push eax
call fcn.00603022
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00603a3c
mov ecx, dword [esi + 0x378]
mov eax, dword [esi + 0x274]
xor edx, edx
push 0
mov dl, byte [ecx + 0x14]
push edx
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x378]
pop edi
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x516554
push eax
lea ecx, [esi + 0x110]
call fcn.00603022
mov edx, dword [esi + 0x378]
mov ecx, esi
mov al, byte [edx + 8]
test al, al
je 0x51656a
call fcn.005158b0
jmp 0x51656f
call fcn.005158e0
mov ecx, esi
call fcn.005157d0
mov ecx, esi
call fcn.00515b70
mov ecx, esi
call fcn.00515ba0
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret