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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [ecx + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xc0]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0xcc]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0xc]
test eax, eax
push esi
sete bl
add ebx, eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x74], ebx
push edi
mov edi, dword [ebp + 8]
lea esi, [ebx + edx]
mov ebx, dword [ecx + 0xc]
add eax, ebx
mov ecx, dword [ecx + 0xb4]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
add eax, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
add eax, 0xfffffff8
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x5c]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x7c], edi
add edi, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], edi
mov edi, dword [ecx]
sub eax, edi
add eax, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x60], eax
mov ebx, 0
mov eax, edi
mov dword [esp + 0x4c], edi
sub eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x24]
add eax, edx
sete bl
add ebx, edx
cmp esi, dword [esp + 0x30]
ja 0x500a25
mov eax, 0x20
sub eax, dword [esp + 0x74]
mov dword [esp + 0x3c], eax
mov eax, 0x18
sub eax, dword [ecx + 0xc0]
mov dword [esp + 0x64], eax
nop dword [eax]
imul edx, dword [ebx], 0x9e3779b1
mov edi, dword [esp + 0x3c]
mov ecx, edi
mov eax, edx
shr eax, cl
mov ecx, dword [esp + 0x64]
shr edx, cl
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], eax
mov eax, edx
shr eax, 8
mov eax, dword [ecx + eax*4]
xor ecx, ecx
mov dword [esp + 0x40], eax
xor eax, edx
test al, al
mov edx, ebx
mov eax, dword [esp + 0x28]
sete cl
sub edx, dword [esp + 0x2c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x38], edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x70], eax
lea eax, [ebx + 0x100]
mov dword [esp + 0x44], ecx
sub edx, dword [esp + 0x1c]
mov dword [esp + 0x84], esi
inc edx
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
lea eax, [ecx + esi]
mov dword [esp + 0x74], eax
cmp edx, dword [esp + 0x20]
jae 0x50037b
mov esi, edx
sub esi, dword [esp + 0x60]
add esi, dword [esp + 0x48]
jmp 0x50037d
add esi, edx
mov eax, dword [esp + 0x18]
mov ecx, edi
mov edi, dword [esp + 0x28]
imul eax, dword [eax], 0x9e3779b1
mov dword [esp + 0x50], eax
shr dword [esp + 0x50], cl
mov ecx, dword [esp + 0x64]
shr eax, cl
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x54]
mov dword [edi + eax*4], ecx
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
sub eax, edx
dec eax
cmp eax, 3
jb 0x5003c8
mov eax, dword [esi]
cmp eax, dword [ebx + 1]
je 0x5005ff
cmp dword [esp + 0x6c], 0
je 0x50055d
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
shr ecx, 8
add edx, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x6c], edx
cmp ecx, dword [esp + 0x7c]
jbe 0x50055d
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x50055d
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x44], eax
ja 0x500567
mov eax, dword [esp + 0x38]
lea esi, [edx + 4]
sub eax, ecx
mov edx, esi
sub eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x70], eax
lea eax, [ebx + 4]
sub eax, esi
add eax, dword [esp + 0x4c]
cmp eax, ecx
cmovb ecx, eax
push ecx
lea ecx, [ebx + 4]
call fcn.004fc690
mov ecx, eax
add esp, 4
mov dword [esp + 0x84], ecx
lea eax, [ecx + esi]
cmp eax, dword [esp + 0x4c]
jne 0x50046b
push dword [esp + 0x10]
mov edx, dword [esp + 0x28]
lea eax, [ebx + 4]
add ecx, eax
call fcn.004fc690
mov ecx, dword [esp + 0x88]
add esp, 4
add ecx, eax
mov eax, dword [esp + 0x5c]
lea esi, [ecx + 4]
cmp eax, dword [esp + 0x6c]
mov dword [esp + 0x18], esi
sbb ecx, ecx
neg ecx
cmp dword [ebp + 0xc], ebx
sbb eax, eax
neg eax
test eax, ecx
je 0x5004c0
mov edx, dword [esp + 0x40]
mov edi, esi
add edx, dword [esp + 0x48]
mov al, byte [ebx - 1]
lea ecx, [edx - 1]
mov edx, ecx
cmp al, byte [ecx]
jne 0x5004b4
dec ebx
inc edi
cmp dword [esp + 0x5c], edx
sbb ecx, ecx
neg ecx
cmp dword [ebp + 0xc], ebx
sbb eax, eax
neg eax
test eax, ecx
jne 0x500493
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
add edx, 0xffffffe0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x58], ecx
lea edx, [ecx + eax]
mov eax, dword [edi + 0xc]
cmp edx, dword [esp + 0x18]
ja 0x50081b
mov edx, dword [ebp + 0xc]
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
cmp ecx, 0x10
jbe 0x500831
movups xmm0, xmmword [edx + 0x10]
lea eax, [ecx - 0x10]
mov ecx, dword [edi + 0xc]
add ecx, 0x10
lea edi, [ecx + eax]
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x14]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x50082d
mov eax, dword [esp + 0x84]
add ecx, 0x10
add edx, 0x20
nop dword [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 0x500540
jmp 0x50082d
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x44], eax
jbe 0x500575
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx]
cmp eax, dword [ebx]
je 0x500722
mov ecx, dword [esp + 0x80]
mov eax, ecx
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x18]
shr eax, 8
mov eax, dword [edx + eax*4]
xor ecx, eax
mov edx, dword [esp + 0x50]
mov dword [esp + 0x40], eax
xor eax, eax
test cl, cl
sete al
cmp esi, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + edx*4]
lea eax, [ebx + 1]
cmovb eax, ebx
mov dword [esp + 0x44], ecx
mov ebx, esi
mov dword [esp + 0x70], eax
add esi, eax
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x30]
ja 0x500a22
mov edi, dword [esp + 0x3c]
mov eax, ebx
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x84], edx
mov dword [esp + 0x38], eax
lea eax, [edx + 0x100]
cmovb eax, edx
mov edx, dword [esp + 0x38]
jmp 0x50034e
cmp edx, dword [esp + 0x20]
lea eax, [ebx + 5]
mov ecx, dword [esp + 0x10]
mov edi, ecx
cmovb edi, dword [esp + 0x4c]
add esi, 4
sub eax, esi
mov edx, esi
add eax, edi
cmp eax, ecx
cmovb ecx, eax
push ecx
lea ecx, [ebx + 5]
call fcn.004fc690
mov ecx, eax
add esp, 4
mov dword [esp + 0x84], ecx
lea eax, [ecx + esi]
cmp eax, edi
jne 0x500659
push dword [esp + 0x10]
mov edx, dword [esp + 0x28]
lea eax, [ebx + 5]
add ecx, eax
call fcn.004fc690
mov ecx, dword [esp + 0x88]
add esp, 4
add ecx, eax
mov eax, dword [ebp + 0xc]
lea esi, [ecx + 4]
mov edx, dword [esp + 0x10]
inc ebx
mov edi, dword [esp + 0x14]
mov ecx, ebx
sub ecx, eax
add edx, 0xffffffe0
mov dword [esp + 0x18], edx
mov dword [esp + 0x58], ecx
lea edx, [ecx + eax]
mov eax, dword [edi + 0xc]
cmp edx, dword [esp + 0x18]
ja 0x5006db
mov edx, dword [ebp + 0xc]
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
cmp ecx, 0x10
jbe 0x5006f1
movups xmm0, xmmword [edx + 0x10]
lea eax, [ecx - 0x10]
mov ecx, dword [edi + 0xc]
add ecx, 0x10
lea edi, [ecx + eax]
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x14]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x5006ed
mov eax, dword [esp + 0x84]
add ecx, 0x10
add edx, 0x20
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 0x5006c1
jmp 0x5006ed
push dword [esp + 0x18]
mov ecx, eax
push edx
mov edx, dword [ebp + 0xc]
call fcn.004fc620
add esp, 8
mov ecx, dword [esp + 0x58]
add dword [edi + 0xc], ecx
mov edx, dword [edi + 4]
cmp ecx, 0xffff
jbe 0x500710
mov eax, edx
mov dword [edi + 0x24], 1
sub eax, dword [edi]
sar eax, 3
mov dword [edi + 0x28], eax
mov word [edx + 4], cx
mov eax, dword [edi + 4]
mov dword [eax], 1
jmp 0x500860
push dword [esp + 0x10]
mov eax, ebx
lea edx, [ecx + 4]
sub eax, ecx
lea ecx, [ebx + 4]
mov dword [esp + 0x74], eax
call fcn.004fc690
add esp, 4
lea esi, [eax + 4]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x74]
mov dword [esp + 0x18], esi
sbb ecx, ecx
neg ecx
cmp dword [ebp + 0xc], ebx
sbb eax, eax
neg eax
test eax, ecx
je 0x500791
mov edx, dword [esp + 0x44]
mov edi, esi
add edx, dword [esp + 0x2c]
mov al, byte [ebx - 1]
lea ecx, [edx - 1]
mov edx, ecx
cmp al, byte [ecx]
jne 0x500785
dec ebx
inc edi
cmp dword [esp + 0x24], edx
sbb ecx, ecx
neg ecx
cmp dword [ebp + 0xc], ebx
sbb eax, eax
neg eax
test eax, ecx
jne 0x500764
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
add edx, 0xffffffe0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x58], ecx
lea edx, [ecx + eax]
mov eax, dword [edi + 0xc]
cmp edx, dword [esp + 0x18]
ja 0x50081b
mov edx, dword [ebp + 0xc]
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
cmp ecx, 0x10
jbe 0x500831
movups xmm0, xmmword [edx + 0x10]
lea eax, [ecx - 0x10]
mov ecx, dword [edi + 0xc]
add ecx, 0x10
lea edi, [ecx + eax]
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x14]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x50082d
mov eax, dword [esp + 0x84]
add ecx, 0x10
add edx, 0x20
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 0x500801
jmp 0x50082d
push dword [esp + 0x18]
mov ecx, eax
push edx
mov edx, dword [ebp + 0xc]
call fcn.004fc620
add esp, 8
mov ecx, dword [esp + 0x58]
add dword [edi + 0xc], ecx
mov edx, dword [edi + 4]
cmp ecx, 0xffff
jbe 0x500850
mov eax, edx
mov dword [edi + 0x24], 1
sub eax, dword [edi]
sar eax, 3
mov dword [edi + 0x28], eax
mov word [edx + 4], cx
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x70]
add ecx, 3
mov dword [eax], ecx
mov ecx, dword [edi + 4]
lea edx, [esi - 3]
cmp edx, 0xffff
jbe 0x50087f
mov eax, ecx
mov dword [edi + 0x24], 2
sub eax, dword [edi]
sar eax, 3
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x30]
add ebx, esi
mov word [ecx + 6], dx
add dword [edi + 4], 8
mov dword [ebp + 0xc], ebx
cmp ebx, eax
ja 0x500a10
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
imul edx, dword [eax + esi + 2], 0x9e3779b1
add eax, 2
shr edx, cl
mov ecx, dword [esp + 0x28]
mov dword [ecx + edx*4], eax
mov eax, ebx
imul edx, dword [ebx - 2], 0x9e3779b1
sub eax, esi
mov ecx, dword [esp + 0x3c]
shr edx, cl
sub eax, 2
mov ecx, dword [esp + 0x28]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x20]
mov eax, ebx
sub eax, esi
mov ecx, eax
mov dword [esp + 0x80], eax
sub ecx, dword [esp + 0x34]
cmp ecx, edx
jae 0x5008f8
mov esi, ecx
sub esi, dword [esp + 0x60]
add esi, dword [esp + 0x48]
jmp 0x5008fa
add esi, ecx
mov eax, edx
sub eax, ecx
dec eax
cmp eax, 3
jb 0x500a0c
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x500a0c
mov edi, dword [esp + 0x10]
lea eax, [ebx + 4]
cmp ecx, edx
mov ecx, dword [esp + 0x10]
cmovb edi, dword [esp + 0x4c]
add esi, 4
sub eax, esi
mov edx, esi
add eax, edi
cmp eax, ecx
cmovb ecx, eax
push ecx
lea ecx, [ebx + 4]
call fcn.004fc690
mov ecx, eax
add esp, 4
mov dword [esp + 0x84], ecx
lea eax, [ecx + esi]
cmp eax, edi
jne 0x50096c
push dword [esp + 0x10]
mov edx, dword [esp + 0x28]
lea eax, [ebx + 4]
add ecx, eax
call fcn.004fc690
mov ecx, dword [esp + 0x88]
add esp, 4
add ecx, eax
mov eax, dword [esp + 0x34]
lea esi, [ecx + 4]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0xc]
cmp ebx, eax
ja 0x500996
movups xmm0, xmmword [ebx]
movups xmmword [ecx], xmm0
jmp 0x5009a2
push eax
push ebx
mov edx, ebx
call fcn.004fc620
add esp, 8
mov eax, dword [edi + 4]
lea edx, [esi - 3]
xor ecx, ecx
mov word [eax + 4], cx
mov eax, dword [edi + 4]
mov dword [eax], 1
mov ecx, dword [edi + 4]
cmp edx, 0xffff
jbe 0x5009d3
mov eax, ecx
mov dword [edi + 0x24], 2
sub eax, dword [edi]
sar eax, 3
mov dword [edi + 0x28], eax
mov word [ecx + 6], dx
add dword [edi + 4], 8
imul eax, dword [ebx], 0x9e3779b1
add ebx, esi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [ebp + 0xc], ebx
shr eax, cl
mov ecx, dword [esp + 0x80]
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x30]
cmp ebx, eax
jbe 0x5008d3
jmp 0x500a10
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x78]
add esi, ebx
mov dword [esp + 0x18], esi
cmp esi, eax
jbe 0x5002f0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 8]
sub eax, edx
pop ebx
mov esp, ebp
pop ebp
ret