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

Disassembly:
push 0xffffffffffffffff
push 0x61ffb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x76c]
lea ecx, [esi + 0x494]
add eax, 0x1c
push eax
call fcn.005d6bd4
mov eax, dword [esi + 0x76c]
add eax, 0x20
mov ecx, dword [eax]
test ecx, ecx
je 0x512009
push eax
lea ecx, [esi + 0x458]
call fcn.005d6bd4
mov ecx, dword [esi + 0x76c]
push edi
add ecx, 0x24
push ecx
lea ecx, [esi + 0x4d0]
call fcn.005d6bd4
mov edx, dword [esi + 0x76c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov eax, dword [edx + 0x28]
and eax, 1
push eax
mov eax, dword [esi + 0x6cc]
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x76c]
mov edx, dword [esi + 0x5dc]
push 0
mov eax, dword [ecx + 0x28]
and eax, 2
push eax
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x76c]
mov ecx, dword [esi + 0x5a0]
push 0
mov eax, dword [eax + 0x28]
and eax, 4
push eax
push 0xf1
push ecx
call edi
mov edx, dword [esi + 0x76c]
push 0
mov eax, dword [edx + 0x28]
and eax, 8
push eax
mov eax, dword [esi + 0x618]
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x76c]
mov edx, dword [esi + 0x564]
push 0
mov eax, dword [ecx + 0x28]
and eax, 0x10
push eax
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x76c]
mov ecx, dword [esi + 0x690]
push 0
mov eax, dword [eax + 0x28]
and eax, 0x20
push eax
push 0xf1
push ecx
call edi
mov edx, dword [esi + 0x76c]
push 0
mov eax, dword [edx + 0x28]
and eax, 0x40
push eax
mov eax, dword [esi + 0x654]
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x76c]
push 0
mov al, byte [ecx + 0x19]
test al, al
je 0x51210f
mov edx, dword [esi + 0x528]
push 1
push 0xf1
push edx
jmp 0x512138
mov eax, dword [esi + 0x528]
push 0
push 0xf1
push eax
call edi
push 0x4c5
mov ecx, esi
call fcn.005f9cb8
mov ecx, dword [eax + 0x1c]
push 0
push 1
push 0xf1
push ecx
call edi
mov edx, dword [esi + 0x76c]
xor eax, eax
push ebx
push 0
mov al, byte [edx + 0x1a]
push eax
mov eax, dword [esi + 0x744]
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x76c]
mov edx, dword [esi + 0x708]
xor eax, eax
push 0
mov al, byte [ecx + 0x1b]
push eax
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x76c]
mov edx, dword [esi + 0x384]
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 + 0x76c]
mov edx, dword [esi + 0x3fc]
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 + 0x76c]
mov edx, dword [esi + 0x3c0]
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 + 0x76c]
mov edx, dword [esi + 0x438]
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 0x512239
mov ecx, dword [esi + 0x78]
push 0
push ebx
push 0x150
push ecx
call edi
mov edx, dword [esi + 0x76c]
cmp dword [edx + 0x3c], eax
jne 0x512225
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 0x5121fe
mov edx, dword [esi + 0x76c]
pop ebx
push 0
mov al, byte [edx + 8]
test al, al
je 0x512259
mov eax, dword [esi + 0x21c]
push 1
push 0xf1
push eax
jmp 0x512282
mov ecx, dword [esi + 0x21c]
push 0
push 0xf1
push ecx
call edi
push 0x630
mov ecx, esi
call fcn.005f9cb8
mov edx, dword [eax + 0x1c]
push 0
push 1
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x76c]
push 0
cmp dword [eax + 4], 1
jne 0x5122a2
mov ecx, dword [esi + 0x258]
push 1
push 0xf1
push ecx
jmp 0x5122b0
mov edx, dword [esi + 0x258]
push 0
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x76c]
push 0x632
mov ecx, dword [eax + 4]
cmp ecx, 2
mov ecx, esi
jne 0x5122db
call fcn.005f9cb8
mov ecx, dword [eax + 0x1c]
push 0
push 1
push 0xf1
push ecx
jmp 0x5122ed
call fcn.005f9cb8
mov edx, dword [eax + 0x1c]
push 0
push 0
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x76c]
push 0x633
mov ecx, dword [eax + 4]
cmp ecx, 3
mov ecx, esi
jne 0x512318
call fcn.005f9cb8
mov ecx, dword [eax + 0x1c]
push 0
push 1
push 0xf1
push ecx
jmp 0x51232a
call fcn.005f9cb8
mov edx, dword [eax + 0x1c]
push 0
push 0
push 0xf1
push edx
call edi
mov eax, dword [esi + 0x76c]
mov edx, dword [esi + 0x1e0]
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 + 0x76c]
mov cl, byte [eax + 9]
test cl, cl
je 0x5123eb
mov ecx, dword [0x6e7b6c]
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 0x6bc0d4
push ecx
call fcn.005f368b
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esi + 0x14c]
push edx
call fcn.005f9e3a
mov eax, dword [esi + 0x76c]
mov ecx, 0x3c
mov eax, dword [eax + 0xc]
cdq
idiv ecx
push edx
lea edx, [esp + 0xc]
push 0x6bc0d4
push edx
call fcn.005f368b
mov eax, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esi + 0xd4]
push eax
call fcn.005f9e3a
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.005fa859
mov ecx, dword [esi + 0x76c]
mov eax, dword [esi + 0x2d0]
xor edx, edx
push 0
mov dl, byte [ecx + 0x14]
push edx
push 0xf1
push eax
call edi
mov ecx, dword [esi + 0x76c]
pop edi
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x512424
push eax
lea ecx, [esi + 0x32c]
call fcn.005f9e3a
mov edx, dword [esi + 0x76c]
mov ecx, esi
mov al, byte [edx + 8]
test al, al
je 0x51243a
call fcn.00511780
jmp 0x51243f
call fcn.005117b0
mov ecx, esi
call fcn.005116a0
mov ecx, esi
call fcn.00511a40
mov ecx, esi
call fcn.00511a70
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret