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

Disassembly:
push 0xffffffffffffffff
push 0x542b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x5c], 0
call fcn.00512290
lea ecx, [esp + 0x13]
mov dword [esp + 0x58], 2
push ecx
lea ecx, [esp + 0x1c]
call fcn.00512290
mov ebp, dword [esp + 0x60]
lea ecx, [esp + 0x14]
push ebp
mov byte [esp + 0x5c], 3
call fcn.005198e0
mov edi, dword [esp + 0x68]
lea ecx, [esp + 0x18]
push edi
call fcn.005198e0
mov edx, dword [0x582bc8]
mov eax, dword [0x582bc0]
mov ecx, dword [0x582bc4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], edx
mov edx, dword [0x5491e8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov eax, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x6c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x68], edx
test al, al
push 0
lea ecx, [esp + 0x1c]
je 0x511cd6
call fcn.00519a20
mov ecx, dword [edi + 0x88]
mov edx, dword [edi + 0x84]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 3
jae 0x511c4c
mov ecx, dword [edi + 0x84]
mov eax, dword [edi + 0x88]
push ecx
fld dword [ecx + 8]
fadd dword [eax - 4]
fstp dword [esp]
fld dword [ecx + 4]
fadd dword [eax - 8]
push ecx
fstp dword [esp]
fld dword [eax - 0xc]
fadd dword [ecx]
push ecx
lea ecx, [esp + 0x44]
fstp dword [esp]
call fcn.004f2f00
fld dword [esp + 0x40]
fmul dword [0x545330]
push ecx
fstp dword [esp]
fld dword [esp + 0x40]
fmul dword [0x545330]
push ecx
fstp dword [esp]
fld dword [esp + 0x40]
fmul dword [0x545330]
push ecx
lea ecx, [esp + 0x50]
fstp dword [esp]
call fcn.004f2f00
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x88]
mov dword [esp + 0x20], edx
add eax, 0xfffffff4
mov dword [esp + 0x28], ecx
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x78]
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x7c]
mov dword [esp + 0x34], edx
fld dword [eax - 0xc]
fadd dword [ecx + 0x1c]
mov eax, dword [eax - 0xc]
mov dword [esp + 0x1c], eax
fmul dword [0x545330]
fstp dword [esp + 0x68]
jmp 0x511e20
mov eax, dword [edi + 0x84]
mov esi, dword [edi + 0x7c]
mov bl, 1
lea ecx, [eax + 0xc]
add eax, 0x18
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
xor cl, cl
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x78]
mov dword [esp + 0x34], edx
xor dl, dl
cmp eax, esi
je 0x511e20
cmp byte [eax + 0x20], 0
je 0x511cca
test bl, bl
je 0x511ca2
xor bl, bl
jmp 0x511cbe
test dl, dl
jne 0x511cb1
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x68], edx
mov dl, 1
jmp 0x511cc2
test cl, cl
jne 0x511cbe
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x1c], ecx
mov cl, 1
test dl, dl
je 0x511cca
test cl, cl
jne 0x511e20
add eax, 0x28
cmp eax, esi
jne 0x511c94
jmp 0x511e20
call fcn.00519a30
mov ecx, dword [edi + 0x88]
mov eax, dword [edi + 0x84]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 3
jae 0x511d9b
mov eax, dword [edi + 0x84]
mov ecx, dword [edi + 0x88]
fld dword [eax + 8]
fadd dword [ecx - 4]
fld dword [eax + 4]
fadd dword [ecx - 8]
fstp dword [esp + 0x6c]
fld dword [eax]
fadd dword [ecx - 0xc]
fstp dword [esp + 0x68]
fmul dword [0x545330]
fld dword [esp + 0x6c]
fmul dword [0x545330]
fld dword [esp + 0x68]
fmul dword [0x545330]
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x20], ecx
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 8]
mov ecx, dword [edi + 0x7c]
mov eax, dword [edi + 0x78]
mov dword [esp + 0x34], edx
fld dword [ecx - 0xc]
fadd dword [eax + 0x1c]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x1c], eax
fmul dword [0x545330]
fstp dword [esp + 0x68]
jmp 0x511e20
mov eax, dword [edi + 0x88]
mov esi, dword [edi + 0x78]
mov bl, 1
lea ecx, [eax - 0x18]
add eax, 0xffffffdc
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
xor cl, cl
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x7c]
mov dword [esp + 0x34], edx
xor dl, dl
cmp eax, esi
je 0x511e20
add eax, 0xfffffff4
cmp byte [eax + 4], 0
je 0x511e12
test bl, bl
je 0x511df0
xor bl, bl
jmp 0x511e0a
test dl, dl
jne 0x511dfe
mov edx, dword [eax]
mov dword [esp + 0x68], edx
mov dl, 1
jmp 0x511e0e
test cl, cl
jne 0x511e0a
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov cl, 1
test dl, dl
je 0x511e12
test cl, cl
jne 0x511e20
sub eax, 0x28
lea ebp, [eax + 0xc]
cmp ebp, esi
mov ebp, dword [esp + 0x60]
jne 0x511de2
mov al, byte [esp + 0x64]
test al, al
je 0x511fcf
mov eax, dword [ebp + 0x78]
lea ecx, [esp + 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [esp + 0x68]
push edx
push eax
call fcn.005199a0
mov ecx, dword [esp + 0x1c]
push 0
push ecx
lea ecx, [esp + 0x1c]
call fcn.005199a0
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0x8c]
mov ebx, dword [ebp + 0x84]
lea esi, [ebp + 0x84]
cmp eax, ecx
je 0x511f00
cmp ebx, eax
jne 0x511e96
test eax, eax
je 0x511e8d
mov edx, dword [esp + 0x20]
mov dword [eax], edx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], edx
add dword [esi + 4], 0xc
jmp 0x511f16
test eax, eax
je 0x511eab
mov ecx, dword [eax - 0xc]
mov dword [eax], ecx
mov edx, dword [eax - 8]
mov dword [eax + 4], edx
mov ecx, dword [eax - 4]
mov dword [eax + 8], ecx
mov ebp, dword [esi + 4]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add ebp, 0xc
mov dword [esp + 0x48], edx
mov dl, byte [esp + 0x6c]
mov eax, ebp
mov byte [esp + 0x6c], dl
mov dword [esp + 0x4c], ecx
lea edx, [esp + 0x6c]
lea ecx, [eax - 0xc]
push 0
add eax, 0xffffffe8
push edx
push ecx
push eax
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x30]
push ebx
call fcn.005125a0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [ebx], ebp
mov ebp, dword [esp + 0x74]
mov dword [ebx + 4], eax
add esp, 0x14
mov dword [ebx + 8], ecx
jmp 0x511f16
push 0
lea edx, [esp + 0x70]
push 1
lea eax, [esp + 0x28]
push edx
push eax
push ebx
mov ecx, esi
call fcn.004cdb20
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov ebx, dword [esi]
cmp eax, ecx
je 0x511fbb
cmp ebx, eax
jne 0x511f4b
test eax, eax
je 0x511f42
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
add dword [esi + 4], 0xc
jmp 0x51207c
test eax, eax
je 0x511f60
mov edx, dword [eax - 0xc]
mov dword [eax], edx
mov ecx, dword [eax - 8]
mov dword [eax + 4], ecx
mov edx, dword [eax - 4]
mov dword [eax + 8], edx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
add edx, 0xc
mov dword [esi + 4], edx
mov esi, edx
mov dl, byte [esp + 0x6c]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x6c]
lea eax, [esi - 0xc]
push 0
add esi, 0xffffffe8
push ecx
push eax
push esi
push ebx
mov byte [esp + 0x80], dl
call fcn.005125a0
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [ebx], ebp
mov ebp, dword [esp + 0x74]
mov dword [ebx + 4], edx
add esp, 0x14
mov dword [ebx + 8], eax
jmp 0x51207c
push 0
lea ecx, [esp + 0x70]
push 1
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
jmp 0x512075
mov eax, dword [ebp + 0x7c]
mov ecx, dword [esp + 0x68]
mov eax, dword [eax - 4]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.005199e0
mov edx, dword [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x1c]
call fcn.005199e0
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0x8c]
lea esi, [ebp + 0x84]
cmp eax, ecx
je 0x512028
test eax, eax
je 0x512022
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
add dword [esi + 4], 0xc
jmp 0x51203e
push 1
lea edx, [esp + 0x70]
push 1
lea ecx, [esp + 0x28]
push edx
push ecx
push eax
mov ecx, esi
call fcn.004cdb20
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x512066
test eax, eax
je 0x512060
mov edx, dword [esp + 0x2c]
mov dword [eax], edx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
add dword [esi + 4], 0xc
jmp 0x51207c
push 1
lea ecx, [esp + 0x70]
push 1
lea edx, [esp + 0x34]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004cdb20
mov eax, dword [0x5491f4]
mov ecx, dword [0x5491e8]
mov edx, dword [0x5491f0]
push eax
push ecx
push edx
push 1
push ebp
call fcn.00510a10
add esp, 0x14
lea ecx, [esp + 0x14]
push ebp
call fcn.00519960
mov eax, dword [0x5491f4]
mov ecx, dword [0x5491e8]
mov edx, dword [0x5491f0]
push eax
push ecx
push edx
push 1
push ebp
call fcn.00510a10
mov eax, dword [0x5491f4]
mov ecx, dword [0x5491e8]
mov edx, dword [0x5491f0]
push eax
push ecx
push edx
push 1
push edi
call fcn.00510a10
add esp, 0x28
lea ecx, [esp + 0x18]
push edi
call fcn.00519960
mov eax, dword [0x5491f4]
mov ecx, dword [0x5491e8]
mov edx, dword [0x5491f0]
push eax
push ecx
push edx
push 1
push edi
call fcn.00510a10
add esp, 0x14
mov eax, dword [esp + 0x18]
mov byte [esp + 0x58], 4
mov esi, dword [eax]
cmp esi, eax
je 0x512130
mov eax, esi
mov esi, dword [esi]
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.004fdfd0
mov eax, dword [esp + 0x18]
cmp esi, eax
jne 0x512118
mov dword [eax], eax
mov eax, dword [esp + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x51214a
push eax
call fcn.005265a0
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
cmp esi, ecx
je 0x51216d
mov eax, esi
mov esi, dword [esi]
test eax, eax
je 0x512169
push eax
call fcn.005265a0
mov ecx, dword [esp + 0x18]
add esp, 4
cmp esi, ecx
jne 0x512154
mov dword [ecx], ecx
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + 4], eax
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
test eax, eax
je 0x51218b
push eax
call fcn.005265a0
add esp, 4
mov ecx, dword [esp + 0x40]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x4c
ret