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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x633261
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x652018]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x38]
push eax
call 0x3dc2aa
mov dword [esp + 0x80], 0
xor eax, eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x3c]
mov eax, dword [esp + 0x3c]
xor edx, edx
xor esi, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x5170be
jmp 0x516eea
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [esp + eax + 0x3c]
call dword [edx + 8]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
push edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
call dword [ebp + 0x14]
test al, al
je 0x516fe5
lea ecx, [esp + 0x28]
call 0x3e5e7a
test eax, eax
jne 0x516fe5
mov ecx, dword [edi + 0x54]
xor edx, edx
test ecx, ecx
je 0x516fe5
test byte [ecx + 0x20], 3
jne 0x516f5c
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x516f5b
mov eax, dword [eax + 0xc]
test eax, eax
je 0x516f5b
test byte [eax + 2], 1
jne 0x516f5c
inc edx
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x516f41
cmp edx, 1
jne 0x516fe5
mov ecx, dword [edi + 0x50]
call 0x3dc92a
mov esi, eax
test esi, esi
je 0x516f9d
lea esp, [esp]
movzx eax, byte [esi]
cmp eax, 3
je 0x516f8c
cmp eax, 6
jne 0x516f9d
mov esi, dword [esi + 0x50]
jmp 0x516f99
mov ecx, esi
call 0x3dc92a
test eax, eax
je 0x516f99
mov esi, eax
test esi, esi
jne 0x516f7a
test ebx, ebx
je 0x516fcb
mov ecx, dword [ebx + 4]
sub esp, 0x10
mov edx, dword [esp + 0x30]
mov eax, esp
mov dword [eax + 8], ecx
lea edx, [edx + 0x6c]
mov ecx, esi
mov byte [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0
call fcn.0041f37a
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test esi, esi
jne 0x517005
mov esi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [esp + eax + 0x3c]
mov eax, dword [edx + 4]
call eax
test al, al
jne 0x516eea
jmp 0x517048
mov edx, dword [esp + 0x18]
cmp edx, eax
jbe 0x517046
lea ecx, [esp + 0x28]
call dword [0x660330]
mov byte [esp + 0x80], 1
mov dword [esp + 0x28], 0x40cc48
mov dword [esp + 0x34], 0x42afc0
mov byte [esp + 0x80], 0
lea eax, [esp + 0x28]
push 0x651bb0
push eax
call 0x5a4c90
je 0x5170be
test esi, esi
je 0x5170be
mov esi, dword [ebp + 0x18]
mov edi, dword [esp + 0x10]
test esi, esi
je 0x51708f
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push edi
push dword [esp + 0x24]
mov byte [esp + 0x30], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call 0x3dbeaa
push 1
lea ecx, [esp + 0x2c]
call 0x3db8fa
mov dword [esi], eax
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x64]
call 0x3e6b2a
mov ecx, dword [esp + 0x70]
mov eax, edi
mov dword [esp + 0x6c], 0x41eec8
mov ecx, dword [ecx + 4]
mov dword [esp + ecx + 0x70], 0x40bbe4
jmp 0x5170eb
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x64]
call 0x3e6b2a
mov eax, dword [esp + 0x70]
mov dword [esp + 0x6c], 0x41eec8
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x70], 0x40bbe4
xor eax, eax
mov dword [esp + 0x64], 0x40bbd8
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14