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

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x74]
push ebx
push ebp
mov ecx, dword [eax + 0x5c]
mov ebp, 1
mov ebx, dword [eax + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0xc0]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x64]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0xbc]
mov dword [esp + 0x4c], ecx
push esi
mov esi, dword [esp + 0x7c]
mov ecx, esi
push edi
mov edi, dword [eax + 4]
sub ecx, edi
add ecx, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0xb8]
shl ebp, cl
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x14], ebp
sub eax, ecx
cmp eax, ebp
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x14]
cmovbe eax, ecx
test ebx, ebx
cmovne eax, ecx
mov dword [esp + 0x14], eax
add eax, edi
mov dword [esp + 0x20], eax
lea eax, [esi + edx]
mov dword [esp + 0x74], eax
add eax, 0xfffffff8
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
mov edi, dword [eax]
mov edx, dword [eax + 4]
xor eax, eax
cmp esi, dword [esp + 0x20]
sete al
add eax, esi
mov esi, eax
mov dword [esp + 0x10], eax
sub esi, dword [esp + 0x18]
mov eax, esi
sub eax, ecx
mov ecx, esi
sub ecx, ebp
cmp eax, ebp
cmovbe ecx, dword [esp + 0x84]
test ebx, ebx
cmovne ecx, dword [esp + 0x84]
sub esi, ecx
cmp esi, edx
sbb eax, eax
xor ebx, ebx
and eax, edx
cmp edx, esi
mov dword [esp + 0x58], eax
cmovbe ebx, edx
cmp esi, edi
sbb eax, eax
xor ebp, ebp
and eax, edi
cmp edi, esi
mov dword [esp + 0x6c], eax
cmovbe ebp, edi
mov edi, dword [esp + 0x80]
xor eax, eax
cmp edi, dword [esp + 0x20]
sete al
add eax, 0x100
add eax, edi
xor ecx, ecx
mov dword [esp + 0x50], eax
cmp edi, dword [esp + 0x20]
sete cl
inc ecx
add ecx, edi
mov dword [esp + 0x84], ecx
cmp ecx, dword [esp + 0x2c]
ja 0x51650d
mov eax, 0x20
mov dword [esp + 0x30], ebx
sub eax, dword [esp + 0x54]
mov esi, 0x40
sub esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], ebp
nop dword [eax]
mov ebp, dword [ebx]
push 0xcf1bbcdc
push 0xb7a56463
push dword [ebx + 4]
push ebp
call fcn.0052c240
mov ecx, esi
call fcn.0052c220
mov esi, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x48], 1
mov eax, dword [eax + edi*4]
add esi, eax
mov dword [esp + 0x40], eax
xor eax, eax
cmp eax, dword [esp + 0x28]
sbb eax, eax
neg eax
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x1c]
imul eax, ebp, 0x9e3779b1
mov ebp, ebx
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], edx
shr eax, cl
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x60], ecx
add ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x38]
mov dword [ecx + eax*4], ebp
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov dword [eax + edi*4], ebp
mov edi, ebx
sub edi, dword [esp + 0x28]
lea ebp, [ebx + 1]
mov eax, dword [edi + 1]
cmp eax, dword [ebp]
sete cl
test dword [esp + 0x5c], ecx
jne 0x516185
mov ebp, dword [edx + 4]
mov edi, dword [edx]
push 0xcf1bbcdc
push 0xb7a56463
push ebp
push edi
call fcn.0052c240
mov ecx, dword [esp + 0x3c]
call fcn.0052c220
mov ecx, dword [ebx]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x40], eax
jbe 0x515dcc
mov eax, dword [ebx + 4]
cmp dword [esi], ecx
jne 0x515dcc
cmp dword [esi + 4], eax
je 0x515e56
mov esi, dword [esp + 0x1c]
mov edx, edi
mov dword [esp + 0x34], edi
lea eax, [esi*4]
mov esi, dword [esp + 0x24]
mov eax, dword [eax + esi]
mov esi, dword [esp + 0x18]
add esi, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x60], eax
jbe 0x515e08
mov eax, dword [esp + 0x54]
mov dword [esp + 0x34], edx
cmp dword [eax], ecx
je 0x515f19
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x50]
cmp edx, ecx
lea eax, [ebx + 1]
cmovb eax, ebx
mov ebx, edx
add edx, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x84], edx
cmp edx, dword [esp + 0x2c]
ja 0x5164fe
cmp dword [esp + 0x64], ecx
lea eax, [ecx + 0x100]
mov ebp, dword [esp + 0x34]
cmovb eax, ecx
mov dword [esp + 0x50], eax
jmp 0x515d30
mov edi, dword [esp + 0x74]
lea ecx, [ebx + 8]
add edi, 0xfffffffd
lea edx, [esi + 8]
mov ebp, ecx
cmp ecx, edi
jae 0x515e95
mov eax, dword [ecx]
xor eax, dword [edx]
je 0x515e77
bsf edi, eax
shr edi, 3
jmp 0x515ebd
add ecx, 4
add edx, 4
cmp ecx, edi
jae 0x515e95
mov eax, dword [ecx]
xor eax, dword [edx]
jne 0x515f0d
add ecx, 4
add edx, 4
cmp ecx, edi
jb 0x515e81
mov edi, dword [esp + 0x74]
lea eax, [edi - 1]
cmp ecx, eax
jae 0x515eae
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x515eae
add ecx, 2
add edx, 2
cmp ecx, edi
jae 0x515eb9
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x515eb9
inc ecx
mov edi, ecx
sub edi, ebp
mov edx, dword [esp + 0x20]
add edi, 8
mov ebp, dword [esp + 0x80]
mov eax, ebx
sub eax, esi
cmp edx, esi
mov dword [esp + 0x34], eax
sbb ecx, ecx
neg ecx
cmp ebp, ebx
sbb eax, eax
neg eax
test eax, ecx
je 0x515f01
mov al, byte [ebx - 1]
dec ebx
dec esi
cmp al, byte [esi]
jne 0x515f01
inc edi
mov dword [esp + 0x10], ebx
cmp edx, esi
sbb ecx, ecx
neg ecx
cmp ebp, ebx
sbb eax, eax
neg eax
test eax, ecx
jne 0x515ee3
mov esi, dword [esp + 0x1c]
shl esi, 2
jmp 0x516094
bsf edi, eax
shr edi, 3
sub edi, ebp
add edi, ecx
jmp 0x515ebd
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x40], eax
jbe 0x515fb8
cmp dword [esi], edi
jne 0x515fb8
cmp dword [esi + 4], ebp
jne 0x515fb8
mov ecx, dword [esp + 0x84]
lea eax, [esi + 8]
push dword [esp + 0x74]
mov ebx, ecx
push eax
lea eax, [ecx + 8]
mov dword [esp + 0x18], ebx
push eax
call fcn.00518400
mov ebp, dword [esp + 0x8c]
mov edx, ebx
add esp, 0xc
lea edi, [eax + 8]
mov eax, edx
sub eax, esi
cmp dword [esp + 0x20], esi
mov dword [esp + 0x34], eax
sbb ecx, ecx
neg ecx
cmp ebp, edx
sbb eax, eax
neg eax
test eax, ecx
je 0x515fa8
mov edx, dword [esp + 0x20]
mov al, byte [ebx - 1]
dec ebx
dec esi
cmp al, byte [esi]
jne 0x515fa1
inc edi
mov dword [esp + 0x10], ebx
cmp edx, esi
sbb ecx, ecx
neg ecx
cmp ebp, ebx
sbb eax, eax
neg eax
test eax, ecx
jne 0x515f83
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x1c]
lea esi, [eax*4]
jmp 0x51609b
mov edi, dword [esp + 0x74]
lea ecx, [ebx + 4]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x54], ecx
lea esi, [edi - 3]
lea edx, [ebp + 4]
cmp ecx, esi
jae 0x516004
mov eax, dword [edx]
xor eax, dword [ecx]
je 0x515fdf
bsf edi, eax
shr edi, 3
jmp 0x51602a
add ecx, 4
add edx, 4
cmp ecx, esi
jae 0x516004
nop dword [eax]
mov eax, dword [edx]
xor eax, dword [ecx]
jne 0x51612b
add ecx, 4
add edx, 4
cmp ecx, esi
jb 0x515ff0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x516019
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x516019
add ecx, 2
add edx, 2
cmp ecx, edi
jae 0x516024
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x516024
inc ecx
mov edi, ecx
sub edi, dword [esp + 0x54]
mov edx, dword [esp + 0x80]
add edi, 4
mov eax, ebx
sub eax, ebp
cmp dword [esp + 0x20], ebp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
sbb ecx, ecx
neg ecx
cmp edx, ebx
lea esi, [eax*4]
sbb eax, eax
neg eax
test eax, ecx
je 0x51608d
nop dword [eax]
mov eax, dword [esp + 0x1c]
dec ebx
dec ebp
lea ecx, [eax*4]
mov al, byte [ebx]
mov esi, ecx
cmp al, byte [ebp]
jne 0x51608d
inc edi
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x20], ebp
sbb ecx, ecx
neg ecx
cmp edx, ebx
sbb eax, eax
neg eax
test eax, ecx
jne 0x516060
mov ebp, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
cmp dword [esp + 0x48], 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
jae 0x5160bd
mov eax, dword [esp + 0x24]
sub edx, dword [esp + 0x18]
mov dword [esi + eax], edx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
mov edx, dword [esp + 0x74]
sub ecx, ebp
mov ebp, dword [esp + 0x78]
add edx, 0xffffffe0
mov esi, dword [esp + 0x80]
mov dword [esp + 0x84], ecx
mov eax, dword [ebp + 0xc]
cmp ebx, edx
ja 0x51613c
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
cmp ecx, 0x10
jbe 0x51614f
movups xmm0, xmmword [esi + 0x10]
lea eax, [ecx - 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [esi + 0x10]
add ecx, 0x10
lea esi, [ecx + eax]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x516148
add ecx, 0x10
add edx, 0x10
movups xmm0, xmmword [edx]
lea edx, [edx + 0x20]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx - 0x10]
movups xmmword [ecx + 0x10], xmm0
add ecx, 0x20
cmp ecx, esi
jb 0x516111
jmp 0x516148
bsf edi, eax
shr edi, 3
sub edi, dword [esp + 0x54]
add edi, ecx
jmp 0x51602a
push edx
push ebx
push esi
push eax
call fcn.005187b0
add esp, 0x10
mov ecx, dword [esp + 0x84]
add dword [ebp + 0xc], ecx
cmp ecx, 0xffff
jbe 0x51616d
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 1
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
mov word [eax + 4], cx
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x34]
add ecx, 3
mov dword [eax], ecx
jmp 0x5162b3
lea ecx, [edi + 5]
add ebx, 5
mov edi, dword [esp + 0x74]
mov esi, ebx
lea eax, [edi - 3]
cmp ebx, eax
jae 0x5161c4
mov edx, dword [ebx]
xor edx, dword [ecx]
je 0x5161a6
bsf edi, edx
shr edi, 3
jmp 0x5161e8
add ebx, 4
add ecx, 4
cmp ebx, eax
jae 0x5161c4
mov edx, dword [ebx]
xor edx, dword [ecx]
jne 0x51626a
add ebx, 4
add ecx, 4
cmp ebx, eax
jb 0x5161b0
lea eax, [edi - 1]
cmp ebx, eax
jae 0x5161d9
mov ax, word [ecx]
cmp ax, word [ebx]
jne 0x5161d9
add ebx, 2
add ecx, 2
cmp ebx, edi
jae 0x5161e4
mov al, byte [ecx]
cmp al, byte [ebx]
jne 0x5161e4
inc ebx
mov edi, ebx
sub edi, esi
mov edx, dword [esp + 0x74]
mov ebx, ebp
mov ebp, dword [esp + 0x78]
mov esi, ebx
mov ecx, dword [esp + 0x80]
add edx, 0xffffffe0
add edi, 4
sub esi, ecx
mov eax, dword [ebp + 0xc]
cmp ebx, edx
ja 0x516279
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
cmp esi, 0x10
jbe 0x516285
movups xmm0, xmmword [ecx + 0x10]
lea edx, [ecx + 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
lea eax, [esi - 0x10]
lea ebp, [ecx + eax]
mov dword [esp + 0x80], ebp
mov ebp, dword [esp + 0x78]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x516285
mov eax, dword [esp + 0x80]
add ecx, 0x10
add edx, 0x10
nop dword [eax + eax]
movups xmm0, xmmword [edx]
lea edx, [edx + 0x20]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx - 0x10]
movups xmmword [ecx + 0x10], xmm0
add ecx, 0x20
cmp ecx, eax
jb 0x516250
jmp 0x516285
bsf edi, edx
shr edi, 3
sub edi, esi
add edi, ebx
jmp 0x5161e8
push edx
push ebx
push ecx
push eax
call fcn.005187b0
add esp, 0x10
add dword [ebp + 0xc], esi
cmp esi, 0xffff
jbe 0x5162a3
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 1
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
mov word [eax + 4], si
mov eax, dword [ebp + 4]
mov dword [eax], 1
lea ecx, [edi - 3]
cmp ecx, 0xffff
jbe 0x5162d1
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 2
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
mov word [eax + 6], cx
add dword [ebp + 4], 8
add ebx, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x80], ebx
cmp ebx, dword [esp + 0x2c]
ja 0x5164dc
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
add edi, 2
push 0xcf1bbcdc
push 0xb7a56463
push dword [edi + eax + 4]
push dword [edi + eax]
call fcn.0052c240
mov ecx, dword [esp + 0x3c]
call fcn.0052c220
mov ecx, dword [esp + 0x24]
push 0xcf1bbcdc
push 0xb7a56463
mov dword [ecx + eax*4], edi
push dword [ebx + 2]
push dword [ebx - 2]
call fcn.0052c240
mov ecx, dword [esp + 0x3c]
call fcn.0052c220
mov edx, dword [esp + 0x18]
mov ecx, eax
mov ebp, dword [esp + 0x24]
mov esi, ebx
sub esi, edx
lea eax, [esi - 2]
mov dword [ebp + ecx*4], eax
imul eax, dword [edi + edx], 0x9e3779b1
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x38]
shr eax, cl
mov dword [ebp + eax*4], edi
lea eax, [esi - 1]
imul edx, dword [ebx - 1], 0x9e3779b1
shr edx, cl
mov dword [ebp + edx*4], eax
mov ebp, dword [esp + 0x78]
mov eax, dword [ebx]
mov edx, ebx
sub edx, dword [esp + 0x30]
xor ecx, ecx
cmp eax, dword [edx]
sete cl
xor eax, eax
cmp eax, dword [esp + 0x30]
sbb eax, eax
neg eax
test eax, ecx
je 0x5164d8
mov esi, dword [esp + 0x74]
lea eax, [ebx + 4]
add esi, 0xfffffffd
add edx, 4
mov edi, eax
cmp eax, esi
jae 0x5163e4
mov ecx, dword [eax]
xor ecx, dword [edx]
je 0x5163c2
bsf ecx, ecx
shr ecx, 3
jmp 0x51640c
add eax, 4
add edx, 4
cmp eax, esi
jae 0x5163e4
nop dword [eax]
mov ecx, dword [eax]
xor ecx, dword [edx]
jne 0x516472
add eax, 4
add edx, 4
cmp eax, esi
jb 0x5163d0
mov esi, dword [esp + 0x74]
lea ecx, [esi - 1]
cmp eax, ecx
jae 0x5163fd
mov cx, word [edx]
cmp cx, word [eax]
jne 0x5163fd
add eax, 2
add edx, 2
cmp eax, esi
jae 0x516408
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x516408
inc eax
mov ecx, eax
sub ecx, edi
mov eax, dword [esp + 0x30]
lea edi, [ecx + 4]
mov ecx, dword [esp + 0x28]
mov esi, ebx
sub esi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
imul eax, dword [ebx], 0x9e3779b1
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x4c]
push 0xcf1bbcdc
push 0xb7a56463
shr eax, cl
mov ecx, dword [esp + 0x40]
mov dword [ecx + eax*4], esi
push dword [ebx + 4]
push dword [ebx]
call fcn.0052c240
mov ecx, dword [esp + 0x3c]
call fcn.0052c220
mov ecx, dword [esp + 0x24]
mov dword [ecx + eax*4], esi
mov ecx, dword [esp + 0x74]
mov eax, dword [ebp + 0xc]
add ecx, 0xffffffe0
cmp ebx, ecx
ja 0x51647e
movups xmm0, xmmword [ebx]
movups xmmword [eax], xmm0
jmp 0x51648a
bsf ecx, ecx
shr ecx, 3
sub ecx, edi
add ecx, eax
jmp 0x51640c
push ecx
push ebx
push ebx
push eax
call fcn.005187b0
add esp, 0x10
mov eax, dword [ebp + 4]
xor ecx, ecx
mov word [eax + 4], cx
lea ecx, [edi - 3]
mov eax, dword [ebp + 4]
mov dword [eax], 1
cmp ecx, 0xffff
jbe 0x5164ba
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
sar eax, 3
mov dword [ebp + 0x24], 2
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 4]
add ebx, edi
mov dword [esp + 0x80], ebx
mov word [eax + 6], cx
add dword [ebp + 4], 8
cmp ebx, dword [esp + 0x2c]
jbe 0x516380
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x3c]
lea ecx, [ebx + 1]
lea eax, [ebx + 0x100]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x50], eax
cmp ecx, dword [esp + 0x2c]
jbe 0x515ce0
mov edi, dword [esp + 0x80]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x58]
test ecx, ecx
je 0x51651e
test ebp, ebp
cmovne eax, ecx
mov edx, dword [esp + 0x7c]
test ebp, ebp
cmovne ecx, ebp
test ebx, ebx
cmovne eax, ebx
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [esp + 0x74]
sub eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret