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

Disassembly:
mov eax, 0x258
call fcn.00538850
mov eax, dword [0x5bbfb0]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x25c]
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x274]
push 1
push eax
lea ecx, [esp + 0x1b0]
push ecx
mov dword [esp + 0x24], 0
call fcn.00535de0
mov ecx, 0x10
mov esi, 0x59a0f8
lea edi, [esp + 0xf4]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x59a0b8
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x34]
sub eax, 4
mov ecx, 0x10
lea esi, [esp + 0x1b4]
lea edi, [esp + 0x174]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], eax
mov ecx, 0x10
mov esi, 0x59a0f8
lea edi, [esp + 0xb4]
lea eax, [esp + 0xb4]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1bf
sub eax, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
lea ebx, [esp + 0x64]
jmp 0x516934
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x274]
mov eax, ecx
shr eax, 3
mov dl, byte [eax + edx]
test eax, eax
jne 0x51694c
and dl, 0xfc
jmp 0x516957
cmp ecx, 0x1bf
jne 0x516957
or dl, 0xff
mov edi, dword [esp + 0x14]
movzx ecx, cl
movzx ebp, dl
and ecx, 7
shr ebp, cl
lea ecx, [esp + 0x164]
lea edx, [esp + 0xe4]
and ebp, 1
neg ebp
xor edi, ebp
call fcn.00515c50
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x24]
call fcn.00515c50
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x28]
lea esi, [esp + 0xe8]
mov dword [esp + 0x18], ebp
call fcn.00515b80
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00535480
add esp, 8
xor eax, eax
nop
xor ecx, ecx
cmp eax, 8
setne cl
inc eax
lea ecx, [ecx + ecx + 0x1ffffffc]
add dword [esp + eax*4 + 0x60], ecx
cmp eax, 0x10
jb 0x5169c0
mov ecx, dword [esp + 0xa0]
shr ecx, 0x1c
add dword [esp + 0x84], ecx
mov eax, 0xf
nop
mov esi, dword [esp + eax*4 + 0x64]
mov edx, dword [ebx + eax*4 - 4]
shr edx, 0x1c
and esi, 0xfffffff
add edx, esi
dec eax
mov dword [esp + eax*4 + 0x68], edx
jne 0x5169f0
mov eax, dword [esp + 0x64]
and eax, 0xfffffff
add eax, ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xa8]
lea esi, [esp + 0x168]
mov dword [esp + 0x68], eax
call fcn.00535480
add esp, 4
xor eax, eax
xor ecx, ecx
cmp eax, 8
setne cl
inc eax
lea ecx, [ecx + ecx + 0x1ffffffc]
add dword [esp + eax*4 + 0x20], ecx
cmp eax, 0x10
jb 0x516a36
mov ecx, dword [esp + 0x60]
shr ecx, 0x1c
add dword [esp + 0x44], ecx
mov eax, 0xf
nop
mov edx, dword [esp + 0x18]
mov edx, dword [edx + eax*4]
mov esi, dword [esp + eax*4 + 0x24]
shr edx, 0x1c
and esi, 0xfffffff
add edx, esi
dec eax
mov dword [esp + eax*4 + 0x28], edx
jne 0x516a60
mov eax, dword [esp + 0x24]
and eax, 0xfffffff
add eax, ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x128]
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0xec]
push eax
call fcn.00535f10
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x174]
lea esi, [esp + 0xb4]
call fcn.00515b80
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x17c]
push ecx
call fcn.00535f10
mov edx, esi
push edx
lea ecx, [esp + 0x184]
lea esi, [esp + 0x104]
call fcn.00535480
add esp, 0x20
xor eax, eax
xor ecx, ecx
cmp eax, 8
setne cl
inc eax
lea ecx, [ecx + ecx + 0x1ffffffc]
add dword [esp + eax*4 + 0xa0], ecx
cmp eax, 0x10
jb 0x516af0
mov ecx, dword [esp + 0xe0]
shr ecx, 0x1c
add dword [esp + 0xc4], ecx
mov eax, 0xf
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax*4]
mov esi, dword [esp + eax*4 + 0xa4]
shr edx, 0x1c
and esi, 0xfffffff
add edx, esi
dec eax
mov dword [esp + eax*4 + 0xa8], edx
jne 0x516b22
mov eax, dword [esp + 0xa4]
and eax, 0xfffffff
add eax, ecx
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0xac], eax
call fcn.00536820
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1b0]
push ecx
lea edx, [esp + 0xb4]
push edx
call fcn.00535f10
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x17c]
lea esi, [esp + 0xfc]
call fcn.00515b80
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x180]
push edx
call fcn.00536820
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00536820
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x150]
push eax
call fcn.00536820
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x58]
push edx
mov eax, esi
push eax
call fcn.00535f10
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x164]
lea esi, [esp + 0x64]
call fcn.00535480
add esp, 0x40
xor eax, eax
lea esp, [esp]
xor ecx, ecx
cmp eax, 8
setne cl
inc eax
lea ecx, [ecx + ecx + 0x1ffffffc]
add dword [esp + eax*4 + 0x60], ecx
cmp eax, 0x10
jb 0x516c10
mov ecx, dword [esp + 0xa0]
shr ecx, 0x1c
add dword [esp + 0x84], ecx
mov eax, 0xf
nop
mov esi, dword [esp + eax*4 + 0x64]
mov edx, dword [ebx + eax*4 - 4]
shr edx, 0x1c
and esi, 0xfffffff
add edx, esi
dec eax
mov dword [esp + eax*4 + 0x68], edx
jne 0x516c40
mov eax, dword [esp + 0x64]
and eax, 0xfffffff
add eax, ecx
push 0x98a9
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x12c]
push edx
mov dword [esp + 0x70], eax
call fcn.00536450
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00515b80
mov ecx, esi
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00535f10
add esp, 0x1c
dec dword [esp + 0x10]
jns 0x516930
mov edi, ebp
lea ecx, [esp + 0x164]
lea edx, [esp + 0xe4]
call fcn.00515c50
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x24]
call fcn.00515c50
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1e8]
push edx
call fcn.00536820
lea eax, [esp + 0x1ec]
push eax
lea ecx, [esp + 0x230]
push ecx
call fcn.00535840
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x1f8]
push eax
call fcn.00536820
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x200]
push edx
lea eax, [esp + 0x244]
push eax
call fcn.00535f10
mov ecx, 0x10
lea esi, [esp + 0x248]
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0x1d0]
push eax
call fcn.00535f10
mov edx, dword [esp + 0x4c]
push 1
lea ecx, [esp + 0x1d8]
push ecx
push edx
call fcn.00535c50
lea eax, [esp + 0x1e0]
push 0x59a0b8
push eax
call fcn.00535760
add esp, 0x44
lea ecx, [esp + 0x1a4]
mov esi, eax
push 0x40
push ecx
not esi
call fcn.00478790
lea edx, [esp + 0xec]
push 0x40
push edx
call fcn.00478790
lea eax, [esp + 0x34]
push 0x40
push eax
call fcn.00478790
lea ecx, [esp + 0x17c]
push 0x40
push ecx
call fcn.00478790
lea edx, [esp + 0xc4]
push 0x40
push edx
call fcn.00478790
lea eax, [esp + 0x14c]
push 0x40
push eax
call fcn.00478790
lea ecx, [esp + 0x94]
push 0x40
push ecx
call fcn.00478790
mov ecx, dword [esp + 0x29c]
add esp, 0x38
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00538458
add esp, 0x258
ret