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

Disassembly:
sub esp, 0x68
push ebp
mov ebp, edx
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x78]
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 8], ebp
cmp edi, edx
je 0x515936
push ebx
push esi
mov esi, dword [esp + 0x7c]
mov ebx, 0x24
nop word [eax + eax]
movzx eax, word [edi]
add edi, 2
mov ecx, eax
cmp eax, 0x24
je 0x515605
mov ebx, dword [esi + 0x14]
mov edx, ecx
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jae 0x5155ea
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp ebx, 8
jb 0x5155d6
mov esi, dword [esi]
xor eax, eax
mov word [esi + ecx*2], dx
mov word [esi + ecx*2 + 2], ax
mov esi, dword [esp + 0x7c]
jmp 0x515893
push edx
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004080d0
mov esi, dword [esp + 0x7c]
jmp 0x515893
cmp edi, edx
jne 0x51564c
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x515630
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x515620
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x24
mov esi, dword [esp + 0x7c]
jmp 0x515898
push 0x24
mov byte [esp + 0x1c], 0
push dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004080d0
mov esi, dword [esp + 0x7c]
jmp 0x515898
movzx ecx, word [edi]
cmp ecx, 0x24
jne 0x51569d
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x51567e
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x51566b
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x24
add edi, 2
mov esi, dword [esp + 0x7c]
jmp 0x515898
push 0x24
mov byte [esp + 0x20], 0
push dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004080d0
add edi, 2
mov esi, dword [esp + 0x7c]
jmp 0x515898
cmp ecx, 0x60
jne 0x5156af
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x38]
push esi
push dword [ebp + 0x18]
jmp 0x5156bf
cmp ecx, 0x27
jne 0x5156d5
mov edx, dword [ebp + 0x20]
lea ecx, [esp + 0x3c]
push esi
push dword [ebp + 0x24]
call fcn.00514280
add esp, 8
add edi, 2
mov esi, dword [eax]
mov dword [esp + 0x7c], esi
jmp 0x515898
cmp ecx, 0x26
jne 0x51572f
mov ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp + 8]
add edi, 2
sub ecx, ebx
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x515893
movq xmm0, qword [ebx]
lea ecx, [esp + 0x40]
movq qword [esp + 0x48], xmm0
movq xmm0, xmm0
push esi
push dword [esp + 0x50]
movq qword [esp + 0x5c], xmm0
mov edx, dword [esp + 0x5c]
call fcn.00514280
add esp, 8
mov esi, dword [eax]
mov dword [esp + 0x7c], esi
jmp 0x515893
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x5158b5
add edi, 2
lea ebx, [ecx - 0x30]
cmp edi, edx
je 0x51576a
movzx edx, word [edi]
lea eax, [edx - 0x30]
cmp ax, 9
ja 0x51576a
lea ebx, [ebx + ebx*4]
mov byte [esp + 0x80], 1
mov eax, edx
lea ebx, [ebx - 0x18]
add edi, 2
lea ebx, [eax + ebx*2]
jmp 0x515772
mov byte [esp + 0x80], 0
test ebx, ebx
jne 0x515835
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x51579d
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x515793
mov eax, dword [esi]
mov ebx, 0x24
mov dword [eax + ecx*2], ebx
jmp 0x5157b5
push 0x24
mov byte [esp + 0x24], 0
push dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004080d0
mov ebx, 0x24
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x5157d7
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x5157ce
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x30
jmp 0x5157ea
push 0x30
mov byte [esp + 0x28], 0
push dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004080d0
cmp byte [esp + 0x80], 0
je 0x515694
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x51581c
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x51580f
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x30
mov esi, dword [esp + 0x7c]
jmp 0x515898
push 0x30
mov byte [esp + 0x2c], 0
push dword [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.004080d0
mov esi, dword [esp + 0x7c]
jmp 0x515898
mov ecx, dword [esp + 0x10]
mov eax, 0x2aaaaaab
mov ebp, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
sub ecx, ebp
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x51588f
lea eax, [ebx + ebx*2]
lea ecx, [eax*4]
movq xmm0, qword [ecx + ebp]
lea ecx, [esp + 0x44]
movq qword [esp + 0x60], xmm0
movq xmm0, xmm0
push esi
push dword [esp + 0x68]
movq qword [esp + 0x74], xmm0
mov edx, dword [esp + 0x74]
call fcn.00514280
add esp, 8
mov esi, dword [eax]
mov dword [esp + 0x7c], esi
mov ebp, dword [esp + 0x10]
mov ebx, 0x24
mov edx, dword [esp + 0x84]
cmp edi, edx
jne 0x5155b0
mov eax, dword [esp + 0x34]
mov dword [eax], esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x68
ret
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x5158d7
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x5158ce
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x24
jmp 0x5158ea
push 0x24
mov byte [esp + 0x30], 0
push dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.004080d0
movzx ebx, word [edi]
add edi, 2
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x51591b
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x515907
mov esi, dword [esi]
xor eax, eax
mov word [esi + ecx*2], bx
mov word [esi + ecx*2 + 2], ax
mov esi, dword [esp + 0x7c]
jmp 0x515893
push ebx
mov byte [esp + 0x34], 0
push dword [esp + 0x34]
push ecx
mov ecx, esi
call fcn.004080d0
mov esi, dword [esp + 0x7c]
jmp 0x515893
mov eax, dword [esp + 0x74]
pop edi
mov dword [ecx], eax
mov eax, ecx
pop ebp
add esp, 0x68
ret