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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 8], 0
je case.0x516974.2
cmp dword [edi + 4], 0
je case.0x516974.2
movzx eax, byte [edi]
dec eax
cmp eax, 0x10
ja case.0x516974.2
movzx eax, byte [eax + 0x516cec]
jmp dword [eax*4 + 0x516cd8]
push 0xac
call fcn.006f4f3d
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov byte [esi + 0x1c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0xf
mov byte [esi + 0x34], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0xf
mov byte [esi + 0x4c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0xf
mov byte [esi + 0x64], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0xf
mov byte [esi + 0x7c], 0
push 0xac
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0xf
push 0
mov byte [esi + 0x94], 0
push esi
mov byte [esi], 1
call fcn.0070dcd0
add esp, 0xc
mov ecx, esi
push dword [edi + 4]
push dword [edi + 8]
call fcn.00515e00
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x6c
call fcn.006f4f3d
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xf
mov byte [esi + 0xc], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0xf
mov byte [esi + 0x24], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0xf
mov byte [esi + 0x3c], 0
push 0x6c
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0xf
push 0
mov byte [esi + 0x54], 0
push esi
mov byte [esi], 3
call fcn.0070dcd0
add esp, 0xc
mov ecx, esi
push dword [edi + 4]
push dword [edi + 8]
call fcn.00515f40
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x28
call fcn.006f4f3d
mov esi, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp + 8], esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
mov byte [esi + 0x10], 0
mov byte [esi], 6
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov edi, eax
mov dword [ebp - 8], ecx
cmp edi, 0xb
jle 0x516c36
movzx eax, byte [ecx]
mov byte [esi], al
mov dl, byte [ecx + 1]
mov eax, dword [ebp - 8]
mov byte [esi + 1], dl
movzx ecx, byte [ecx + 3]
shl cx, 8
mov word [esi + 2], cx
movzx eax, byte [eax + 2]
add ax, cx
mov ecx, dword [ebp - 8]
mov word [esi + 2], ax
mov al, byte [ecx + 4]
mov byte [esi + 4], al
mov byte [ebp + 0xb], al
movzx eax, byte [ecx + 5]
mov byte [esi + 5], al
movzx eax, byte [ecx + 6]
mov byte [esi + 6], al
movzx ecx, byte [ecx + 8]
mov eax, dword [ebp - 8]
shl cx, 8
mov word [esi + 8], cx
movzx eax, byte [eax + 7]
add ax, cx
mov ecx, dword [ebp - 8]
mov word [esi + 8], ax
movzx eax, byte [ecx + 9]
mov byte [esi + 0xa], al
movzx eax, byte [ecx + 0xa]
mov byte [esi + 0xb], al
movzx eax, byte [ecx + 0xb]
mov byte [esi + 0xc], al
movzx eax, dl
sub edi, eax
movzx eax, dl
lea eax, [eax + ecx]
mov cl, 0
mov dword [ebp - 8], eax
mov eax, 0
mov edx, eax
je 0x516c36
mov ch, byte [ebp + 0xb]
nop word [eax + eax]
mov ebx, dword [ebp - 8]
cmp byte [eax + ebx], 0
lea ebx, [esi + 0x10]
jne 0x516ba5
inc cl
cmp cl, ch
je 0x516bb5
lea edx, [eax + 1]
inc eax
cmp eax, edi
jb 0x516b90
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
sub eax, edx
mov dword [ebp - 0x10], 0
push eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x20]
add eax, edx
mov dword [ebp - 0xc], 0xf
push eax
mov byte [ebp - 0x20], 0
call fcn.00460f20
lea eax, [ebp - 0x20]
cmp ebx, eax
je 0x516c02
mov ecx, ebx
call fcn.00461050
movups xmm0, xmmword [ebp - 0x20]
mov eax, esi
movups xmmword [ebx], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [ebx + 0x10], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x516c36
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x516c2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x516cd1
push edx
push ecx
call fcn.006f4f2f
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80
call fcn.006f4f3d
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0xf
mov byte [esi + 0x38], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0xf
mov byte [esi + 0x50], 0
push 0x80
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0xf
push 0
mov byte [esi + 0x68], 0
push esi
mov byte [esi], 0x11
call fcn.0070dcd0
add esp, 0xc
mov ecx, esi
push dword [edi + 4]
push dword [edi + 8]
call fcn.00516010
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00710a9c
nop
jnp 0x516d43
push ecx
add byte [ebx], dh
push 0x51
add byte [edx + 0x4100516a], dh
insb byte es:[edi], dx
push ecx
add dh, al
insb byte es:[edi], dx
push ecx
add byte [eax], al
add al, 1
add al, 4
add al, byte [esp + eax]
add al, 4
add al, 4
add al, 4
add al, 4
add ecx, esp
int3
movzx edi, byte [ecx + ebx + 1]
lea eax, [ebx + ecx]
mov dword [ebp - 0xc], eax
mov al, byte [eax]
mov byte [ebp - 1], al
lea eax, [edi + ebx]
mov dword [ebp - 8], edi
cmp eax, edx
jge 0x516e6d
sub edx, edi
lea esi, [eax + ecx]
sub edx, ebx
xor ecx, ecx
cmp edx, 1
jbe 0x516e6d
mov eax, 1
cmp byte [esi + eax - 1], 0
jne 0x516d63
cmp byte [ecx + esi + 1], 0
je 0x516d72
inc eax
inc ecx
cmp eax, edx
jb 0x516d55
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edi, [ecx + 2]
mov dword [ebp - 0x10], edi
cmp edi, 0xffffffff
je 0x516e6d
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 8]
sub edx, esi
sar edx, 2
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x516e4f
mov eax, esi
nop
mov ecx, dword [eax]
test ecx, ecx
je 0x516db0
mov dl, byte [ebp - 1]
cmp dl, byte [ecx]
mov edx, dword [ebp - 0x1c]
je 0x516dbd
inc ebx
add eax, 4
cmp ebx, edx
jb 0x516da0
jmp 0x516e4f
mov ebx, dword [esi + ebx*4]
test ebx, ebx
je 0x516e4f
cmp dword [ebx + 8], 0
jne 0x516df1
mov esi, dword [ebp - 8]
add esi, edi
push esi
call fcn.006f4f6d
push esi
push dword [ebp - 0xc]
mov edx, esi
mov dword [ebx + 8], eax
mov ecx, eax
call fcn.004b4b50
add esp, 0xc
mov dword [ebx + 4], esi
jmp 0x516e4f
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x516e01
mov ebx, eax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x516df8
push 0x10
call fcn.006f4f3d
mov esi, dword [ebp - 8]
mov edi, eax
mov al, byte [ebp - 1]
add esi, dword [ebp - 0x10]
push esi
mov dword [ebp - 0x1c], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [edi], al
call fcn.006f4f6d
push esi
push dword [ebp - 0xc]
mov edx, esi
mov dword [edi + 8], eax
mov ecx, eax
call fcn.004b4b50
mov dword [edi + 4], esi
add esp, 0x10
mov dword [ebx + 0xc], edi
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
add eax, edi
mov edx, dword [ebp + 0xc]
add ebx, eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
lea eax, [ebx + 1]
cmp eax, edx
jl 0x516d20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8