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

Disassembly:
push 0xffffffffffffffff
push 0x626f28
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.005dee64
mov eax, dword [esi + 0x378]
add eax, 0x20
mov ecx, dword [eax]
test ecx, ecx
je 0x515219
push eax
lea ecx, [esi + 0x14c]
call fcn.005dee64
mov ecx, dword [esi + 0x378]
push edi
add ecx, 0x24
push ecx
lea ecx, [esi + 0x1c4]
call fcn.005dee64
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 0x51531f
mov edx, dword [esi + 0x2d4]
push 1
push 0xf1
push edx
jmp 0x515348
mov eax, dword [esi + 0x2d4]
push 0
push 0xf1
push eax
call edi
push 0x4c5
mov ecx, esi
call fcn.00601f3c
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 0x515449
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 0x515435
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 0x51540e
mov edx, dword [esi + 0x378]
pop ebx
push 0
mov al, byte [edx + 8]
test al, al
je 0x515469
mov eax, dword [esi + 0x244]
push 1
push 0xf1
push eax
jmp 0x515492
mov ecx, dword [esi + 0x244]
push 0
push 0xf1
push ecx
call edi
push 0x630
mov ecx, esi
call fcn.00601f3c
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 0x5154b2
mov ecx, dword [esi + 0x254]
push 1
push 0xf1
push ecx
jmp 0x5154c0
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 0x5154eb
call fcn.00601f3c
mov ecx, dword [eax + 0x1c]
push 0
push 1
push 0xf1
push ecx
jmp 0x5154fd
call fcn.00601f3c
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 0x515528
call fcn.00601f3c
mov ecx, dword [eax + 0x1c]
push 0
push 1
push 0xf1
push ecx
jmp 0x51553a
call fcn.00601f3c
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 0x5155fb
mov ecx, dword [0x6cc708]
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 0x6a00e4
push ecx
call fcn.005fb90b
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esi + 0xd4]
push edx
call fcn.006020be
mov eax, dword [esi + 0x378]
mov ecx, 0x3c
mov eax, dword [eax + 0xc]
cdq
idiv ecx
push edx
lea edx, [esp + 0xc]
push 0x6a00e4
push edx
call fcn.005fb90b
mov eax, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esi + 0x98]
push eax
call fcn.006020be
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00602ad6
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 0x515634
push eax
lea ecx, [esi + 0x110]
call fcn.006020be
mov edx, dword [esi + 0x378]
mov ecx, esi
mov al, byte [edx + 8]
test al, al
je 0x51564a
call fcn.00514990
jmp 0x51564f
call fcn.005149c0
mov ecx, esi
call fcn.005148b0
mov ecx, esi
call fcn.00514c50
mov ecx, esi
call fcn.00514c80
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret