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

Disassembly:
sub esp, 0xc4
mov eax, dword [0x5d60c4]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xcc]
push ebx
mov ebx, dword [esp + 0xd4]
push ebp
push esi
mov esi, dword [esp + 0xd4]
mov edx, dword [esp + 0xe4]
mov dword [esp + 0x94], eax
push edi
movups xmm1, xmmword [esi]
mov edi, dword [esp + 0xe4]
movq xmm0, qword [esi + 0x10]
psrldq xmm1, 0xc
movd eax, xmm1
movq qword [esp + 0xb0], xmm0
mov dword [esp + 0x30], ebx
cmp dword [esp + 0xb0], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebx + 8]
sbb ebp, ebp
neg ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x48], ebp
mov ebp, dword [ebx + 0xc]
mov ebx, dword [ebx + 4]
sub ebx, edi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x94], ebx
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ebx
cmp dword [esp + 0xb0], eax
jae 0x52105a
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x64], ecx
jmp 0x52105e
mov dword [esp + 0x64], ebx
mov eax, dword [esp + 0x48]
mov ebx, dword [esi + 4]
mov dword [esp + 0x38], ebx
test eax, eax
je 0x521072
mov esi, dword [esi + 8]
jmp 0x521074
xor esi, esi
mov edi, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x64]
add eax, esi
mov dword [esp + 0x4c], esi
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, esi
add eax, dword [esp + 0x6c]
lea esi, [edi + edx]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x48]
neg ecx
mov dword [esp + 0x18], esi
sbb ecx, ecx
add ebx, dword [esp + 0x6c]
and ecx, eax
mov dword [esp + 0x28], ebx
lea eax, [esi - 8]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x1c]
add eax, 0x24
mov dword [esp + 0x8c], eax
cmp edx, ebp
jae 0x5210d4
mov eax, edx
jmp 0x521638
push dword [esp + 0x30]
lea eax, [esp + 0xa4]
push eax
call fcn.00520d10
lea ecx, [edi + ebp]
add esp, 8
lea eax, [esi - 8]
mov dword [esp + 0x34], ecx
cmp ecx, eax
jae 0x521634
nop word [eax + eax]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], 0
push edx
push dword [esp + 0x90]
sub eax, ecx
push eax
push ecx
lea eax, [esp + 0xb0]
push eax
call fcn.00520b60
mov dword [esp + 0xa4], eax
add esp, 0x14
mov eax, dword [esp + 0x40]
xor ebp, ebp
test eax, eax
je 0x5211d8
mov ecx, dword [esp + 0x94]
mov edi, 1
mov ebx, dword [esp + 0x1c]
shl edi, cl
dec edi
add ebx, 0x12c
mov dword [esp + 0x44], edi
nop word [eax + eax]
mov eax, dword [esp + 0x8c]
push 0
push 0
mov esi, dword [eax + ebp*4]
mov eax, dword [esp + 0x5c]
sub esi, eax
add esi, dword [esp + 0x3c]
push eax
push esi
call fcn.0051c480
and edi, eax
mov dword [ebx - 8], esi
mov eax, dword [esp + 0x40]
lea ebx, [ebx + 0x10]
mov dword [ebx - 0x14], edi
inc ebp
mov dword [ebx - 0x10], edx
add esp, 0x10
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
psrldq xmm1, 8
movd ecx, xmm1
movq qword [esp + 0xc8], xmm0
shl edi, cl
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x18]
lea eax, [eax + edi*8]
mov edi, dword [esp + 0x44]
mov dword [ebx - 0xc], eax
mov eax, dword [esp + 0x40]
cmp ebp, eax
jb 0x521160
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
jmp 0x5211dc
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x88], 0
test eax, eax
je 0x521606
add ecx, 0x128
mov dword [esp + 0x44], ecx
nop dword [eax]
mov eax, dword [ecx + 4]
mov ebp, dword [ecx - 4]
mov edx, dword [ecx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
mov dword [esp + 0x5c], eax
mov eax, ebp
sub eax, dword [esp + 0x38]
mov dword [esp + 0x58], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x60], eax
cmp ebp, edi
jb 0x521587
mov ecx, dword [esp + 0x68]
mov eax, 8
shl eax, cl
add eax, edx
mov dword [esp + 0x24], eax
cmp edx, eax
jae 0x521587
mov ecx, eax
nop
mov eax, dword [esp + 0x3c]
cmp dword [edx + 4], eax
jne 0x5214a9
mov ecx, dword [edx]
cmp ecx, dword [esp + 0x64]
jbe 0x5214a5
cmp dword [esp + 0x48], 0
je 0x521399
cmp ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x38]
cmovb edi, dword [esp + 0x4c]
add edi, ecx
cmp ecx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
cmovb esi, dword [esp + 0x78]
cmovb ebx, dword [esp + 0x50]
mov eax, esi
sub eax, edi
mov dword [esp + 0x74], edi
add eax, ebp
cmp eax, ecx
cmovb ecx, eax
push ecx
push edi
push ebp
call fcn.00520520
mov ebp, eax
mov dword [esp + 0x7c], eax
add esp, 0xc
lea ecx, [edi + ebp]
cmp ecx, esi
je 0x5212e2
mov esi, dword [esp + 0x10]
jmp 0x521301
mov esi, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push dword [esp + 0x2c]
lea eax, [esi + ebp]
push eax
call fcn.00520520
add esp, 0xc
add ebp, eax
mov dword [esp + 0x70], ebp
cmp ebp, dword [esp + 0x54]
jb 0x521499
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x7c], edx
cmp esi, eax
jbe 0x52134f
lea ecx, [edi - 1]
mov ebp, eax
mov edi, dword [esp + 0x10]
sub edi, dword [esp + 0x74]
lea eax, [ecx + 1]
cmp eax, ebx
jbe 0x52133b
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x52133b
dec esi
dec ecx
inc edx
cmp esi, ebp
ja 0x521326
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x7c], edx
sub edi, edx
cmp edi, ebx
jne 0x521447
cmp ebx, dword [esp + 0x50]
je 0x521447
mov edi, dword [esp + 0x78]
sub esi, edx
xor ebx, ebx
cmp esi, eax
jbe 0x521392
mov edx, dword [esp + 0x50]
cmp edi, edx
jbe 0x52138e
lea eax, [esi - 1]
mov esi, eax
lea ecx, [edi - 1]
mov al, byte [eax]
mov edi, ecx
cmp al, byte [ecx]
jne 0x52138e
inc ebx
cmp esi, dword [esp + 0x14]
ja 0x521373
mov edx, dword [esp + 0x7c]
add edx, ebx
jmp 0x521447
mov ebx, dword [esp + 0x38]
add esi, 0xfffffffd
add ebx, ecx
mov eax, ebp
mov edx, ebx
cmp ebp, esi
jae 0x5213e4
mov eax, dword [ebp]
xor eax, dword [ebx]
je 0x5213bd
bsf ebp, eax
mov eax, dword [esp + 0x10]
shr ebp, 3
jmp 0x521410
lea eax, [ebp + 4]
lea edx, [ebx + 4]
cmp eax, esi
jae 0x5213e4
nop word [eax + eax]
mov ecx, dword [eax]
xor ecx, dword [edx]
jne 0x52147d
add eax, 4
add edx, 4
cmp eax, esi
jb 0x5213d0
mov esi, dword [esp + 0x18]
lea ecx, [esi - 1]
cmp eax, ecx
jae 0x5213fd
mov cx, word [edx]
cmp cx, word [eax]
jne 0x5213fd
add eax, 2
add edx, 2
cmp eax, esi
jae 0x521408
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x521408
inc eax
mov ebp, eax
mov eax, dword [esp + 0x10]
sub ebp, eax
cmp ebp, dword [esp + 0x54]
jb 0x52149d
xor edx, edx
cmp eax, edi
jbe 0x521447
mov edi, eax
lea ecx, [ebx - 1]
sub edi, ebx
mov esi, eax
mov ebx, dword [esp + 0x14]
nop dword [eax]
lea eax, [ecx + 1]
cmp eax, dword [esp + 0x28]
jbe 0x521447
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x521447
dec esi
dec ecx
inc edx
cmp esi, ebx
ja 0x521430
mov edi, dword [esp + 0x14]
lea eax, [edx + ebp]
mov ecx, dword [esp + 0x24]
cmp eax, dword [esp + 0x80]
jbe 0x52148f
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x80], eax
mov eax, edx
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x20], eax
jmp 0x5214ad
bsf ebp, ecx
shr ebp, 3
sub ebp, dword [esp + 0x10]
add ebp, eax
mov eax, dword [esp + 0x10]
jmp 0x521410
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
jmp 0x5214a9
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
add edx, 8
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
cmp edx, ecx
jb 0x521270
test eax, eax
je 0x521587
mov ebx, dword [esp + 0x98]
mov edx, ebp
sub edx, dword [eax]
sub edx, dword [esp + 0x38]
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
je 0x52162d
lea ecx, [eax + eax*2]
mov eax, dword [ebx]
mov dword [eax + ecx*4], edx
lea ecx, [eax + ecx*4]
mov eax, ebp
sub eax, dword [esp + 0x84]
sub eax, edi
mov edi, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x84]
mov dword [ecx + 8], eax
inc dword [ebx + 0xc]
mov eax, dword [esp + 0x30]
mov esi, dword [edi + 0x20]
mov ebx, dword [esp + 0x5c]
add esi, ebx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dl, byte [esi]
psrldq xmm1, 8
movd ecx, xmm1
movzx eax, dl
inc dl
movq qword [esp + 0xc8], xmm0
shl ebx, cl
add ebx, eax
mov eax, dword [edi + 0x18]
mov edi, dword [esp + 0x60]
mov dword [eax + ebx*8], edi
mov edi, dword [esp + 0x3c]
mov dword [eax + ebx*8 + 4], edi
mov al, 1
mov edi, dword [esp + 0x58]
shl al, cl
add edi, ebp
dec al
mov dword [esp + 0x14], edi
and al, dl
mov edx, dword [esp + 0x90]
mov byte [esi], al
mov eax, dword [esp + 0x34]
add eax, edx
cmp edi, eax
jbe 0x5215d9
mov ecx, edi
sub ecx, edx
jmp 0x52160a
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x5c]
movups xmm1, xmmword [eax]
mov esi, dword [ebp + 0x20]
movq xmm0, qword [eax + 0x10]
add esi, ebx
psrldq xmm1, 8
movd ecx, xmm1
movq qword [esp + 0xc8], xmm0
mov dl, byte [esi]
movzx eax, dl
inc dl
shl ebx, cl
add ebx, eax
mov eax, dword [ebp + 0x18]
mov ebp, dword [esp + 0x60]
mov dword [eax + ebx*8], ebp
mov ebp, dword [esp + 0x3c]
mov dword [eax + ebx*8 + 4], ebp
mov al, 1
shl al, cl
dec al
and al, dl
mov byte [esi], al
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x44]
inc eax
add ecx, 0x10
mov dword [esp + 0x88], eax
mov dword [esp + 0x44], ecx
cmp eax, dword [esp + 0x40]
jae 0x521606
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
jmp 0x521200
mov ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
cmp ecx, eax
jae 0x521634
mov ebx, dword [esp + 0x28]
jmp 0x521100
mov eax, 0xffffffba
jmp 0x521638
sub esi, edi
mov eax, esi
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052b789
add esp, 0xc4
ret