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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x612c98
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6ac9e8]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov eax, dword [ebx + 0xbc]
mov esi, dword [eax]
mov edi, dword [ebx + 0xa4]
mov dword [esp + 0x2c], esi
jmp 0x516850
mov ebp, dword [ebx + 0xbc]
mov eax, dword [ebx + 0xa4]
test edi, edi
je 0x516864
cmp edi, eax
je 0x516869
call fcn.005c5aaf
cmp esi, ebp
je 0x5169e2
test edi, edi
jne 0x5169a6
call fcn.005c5aaf
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x51688a
call fcn.005c5aaf
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x20], ebx
test edi, edi
jne 0x5169ad
call fcn.005c5aaf
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x5168aa
call fcn.005c5aaf
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
lea ebp, [esi + 0x10]
call fcn.00516070
test al, al
jne 0x5169bc
mov eax, dword [ebx + 0xdc]
lea esi, [ebx + 0xc4]
mov ebx, dword [esi]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.005148a0
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x5168f0
cmp ebx, dword [eax]
je 0x5168f9
call fcn.005c5aaf
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
cmp ecx, dword [eax + 4]
jne 0x5169b4
push ebp
mov ecx, 0x6ed168
call fcn.00536040
mov edx, dword [esp + 0x20]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [esp + 0x74]
mov dword [esp + 0x70], edx
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call fcn.00416950
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
mov dword [esp + 0x98], ebx
call fcn.00514bd0
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0x90], 0xffffffff
jb 0x516978
mov edx, dword [esp + 0x6c]
push edx
call fcn.005c5896
add esp, 4
mov eax, dword [esp + 0x2c]
push eax
push edi
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x24]
add ecx, 0xa4
call fcn.0044a6a0
mov edx, dword [eax + 4]
mov edi, dword [eax]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov esi, edx
jmp 0x516850
mov eax, dword [edi]
jmp 0x516880
mov eax, dword [edi]
jmp 0x5168a0
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
push esi
push edi
lea eax, [esp + 0x58]
push eax
lea ecx, [ebx + 0xa4]
call fcn.0044a6a0
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov esi, ecx
jmp 0x516850
call fcn.0053cf40
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x6ed168
mov dword [esp + 0x28], eax
call fcn.00535f10
test al, al
je 0x516b45
mov eax, dword [esp + 0x1c]
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x516a15
mov eax, dword [eax + 4]
jmp 0x516a18
add eax, 4
push eax
mov ecx, ebx
call fcn.00516420
mov esi, eax
test esi, esi
je 0x516a74
mov ecx, esi
call fcn.00521480
test al, al
je 0x516a74
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x160]
mov edx, dword [esi]
mov eax, dword [eax + 0x164]
mov edx, dword [edx + 0x14]
push ecx
push eax
mov ecx, esi
call edx
mov ecx, esi
call fcn.0052b2a0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x5c]
push edx
lea ecx, [ebx + 0xe4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
call fcn.00469510
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
cmp dword [eax + 0x18], edi
jb 0x516a85
mov eax, dword [eax + 4]
jmp 0x516a88
add eax, 4
push ecx
push eax
call fcn.00541df0
add esp, 8
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [ebx + 0xc4]
call fcn.00515be0
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov eax, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
test eax, eax
je 0x516acd
cmp eax, edi
je 0x516ad2
call fcn.005c5aaf
cmp dword [esp + 0x2c], esi
je 0x516ae7
lea ecx, [esp + 0x28]
call fcn.0046d7d0
mov eax, dword [esp + 0x28]
jmp 0x516ac5
mov ecx, dword [esp + 0x18]
push esi
push edi
push ebx
push ebp
lea edx, [esp + 0x60]
push edx
add ecx, 0xc4
call fcn.0044b1a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x160]
push ecx
call fcn.005c6b29
mov ecx, dword [esp + 0x20]
add esp, 4
mov esi, ecx
test ecx, ecx
je 0x516b2a
call fcn.00515d30
push esi
call fcn.005c5896
add esp, 4
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x6ed168
call fcn.00535f10
mov ebx, dword [esp + 0x18]
test al, al
jne 0x516a02
call fcn.0053cf40
mov esi, dword [ebx + 0xe4]
add ebx, 0xe4
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x18]
mov edi, dword [eax]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov ebp, dword [ebx + 0x18]
mov eax, dword [ebx]
test esi, esi
je 0x516b74
cmp esi, eax
je 0x516b79
call fcn.005c5aaf
cmp edi, ebp
je 0x516bf1
test esi, esi
jne 0x516bd3
call fcn.005c5aaf
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x516b92
call fcn.005c5aaf
mov ecx, dword [esp + 0x24]
sub ecx, dword [edi + 0xc]
cmp ecx, 0x7530
jle 0x516bdb
test esi, esi
jne 0x516bd7
call fcn.005c5aaf
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x516bb6
call fcn.005c5aaf
mov ecx, dword [edi + 0x10]
call fcn.0052b2b0
push edi
push esi
lea edx, [esp + 0x40]
push edx
mov ecx, ebx
call fcn.0051df50
mov esi, dword [eax]
mov edi, dword [eax + 4]
jmp 0x516b5f
mov eax, dword [esi]
jmp 0x516b88
mov eax, dword [esi]
jmp 0x516bac
lea ecx, [esp + 0x28]
call fcn.0054dfb0
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
jmp 0x516b67
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret