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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
mov edx, 1
mov eax, dword [edi + 0x5c]
mov esi, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc0]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0xcc]
mov ecx, eax
neg ecx
mov dword [esp + 0x18], esi
sbb ecx, ecx
add eax, 2
add ecx, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xc]
sub eax, esi
mov dword [esp + 0x68], ecx
add eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0xb8]
shl edx, cl
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x34], eax
sub eax, ecx
sub dword [esp + 0x34], edx
cmp eax, edx
mov edx, dword [esp + 0x34]
cmovbe edx, ecx
cmp dword [edi + 0x18], 0
cmovne edx, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 0x34]
lea eax, [edx + ecx]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0xc]
cmp eax, edx
cmovb eax, edx
mov dword [esp + 0x28], eax
lea edx, [eax + esi]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0xc]
add ecx, eax
mov dword [esp + 0x60], edx
mov esi, eax
mov edx, dword [ebp + 8]
mov dword [esp + 0x30], ecx
add ecx, 0xfffffff8
cmp dword [esp + 0x28], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx]
mov edx, dword [edx + 4]
jne 0x50b0a7
mov esi, dword [ebp + 8]
push ebx
push eax
push esi
push dword [esp + 0x2c]
push edi
call fcn.00508c10
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, eax
mov dword [esp + 0x74], 0
sub eax, dword [esp + 0x34]
mov edi, edx
sub eax, dword [esp + 0x18]
cmp edx, eax
cmovb edi, dword [esp + 0x74]
mov dword [esp + 0x74], edi
sbb edi, edi
and edi, edx
mov edx, ecx
mov dword [esp + 0x3c], edi
xor edi, edi
cmp ecx, eax
cmovb edx, edi
mov edi, dword [esp + 0x68]
sbb eax, eax
mov dword [esp + 0x84], edx
and eax, ecx
lea edx, [ebx + 1]
add edi, ebx
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x80]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x54], edi
lea eax, [edi + 1]
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x4c]
jae 0x50ba0e
mov eax, dword [esp + 0x3c]
mov ecx, 0x40
sub ecx, dword [esp + 0x70]
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], ecx
mov ecx, 0x20
sub ecx, dword [esp + 0x70]
add ebx, 0xfffffffc
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], ebx
cmp ebx, 4
ja case.0x50b14b.0
jmp dword [ebx*4 + 0x50ba4c]
push 0xcf1bbcdc
push 0xbb000000
push dword [esi + 4]
push dword [esi]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
jmp switch.0x0050b1b6
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x50b15c
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x50b15c
push 0xcf1bbcdc
push 0xb7a56463
jmp 0x50b15c
imul eax, dword [esi], 0x9e3779b1
shr eax, cl
mov dword [esp + 0x40], eax
cmp ebx, 4
ja case.0x50b1b6.0
jmp dword [ebx*4 + 0x50ba60]
push 0xcf1bbcdc
push 0xbb000000
push dword [edx + 4]
push dword [edx]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov ebx, eax
jmp 0x50b249
push 0xcf1bbcdc
push 0xbf9b0000
push dword [edx + 4]
push dword [edx]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov ebx, eax
jmp 0x50b249
push 0xcf1bbcdc
push 0xbfa56300
push dword [edx + 4]
push dword [edx]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov ebx, eax
jmp 0x50b249
push 0xcf1bbcdc
push 0xb7a56463
push dword [edx + 4]
push dword [edx]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov ebx, eax
jmp 0x50b249
imul ebx, dword [edx], 0x9e3779b1
shr ebx, cl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + eax*4]
mov ecx, edx
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
cmovb ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x70], eax
xor eax, eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
sbb eax, eax
neg eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
mov ecx, edi
sub ecx, dword [esp + 0x24]
sub ecx, edx
cmp ecx, eax
mov dword [esp + 0x7c], ecx
cmovb edx, dword [esp + 0x44]
sub eax, ecx
add edx, ecx
cmp eax, 4
sbb eax, eax
inc eax
test dword [esp + 0x78], eax
je 0x50b2ac
mov eax, dword [edx]
jmp 0x50b2b1
mov eax, dword [edi]
xor eax, 1
mov edi, dword [esp + 0x40]
mov ecx, esi
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], ecx
mov dword [eax + edi*4], ecx
mov edi, dword [esp + 0x54]
mov ecx, dword [edi]
cmp ecx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
je 0x50b56a
mov edx, dword [esp + 0x50]
mov ecx, dword [esi]
cmp edx, dword [esp + 0x34]
jb 0x50b2f3
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edx]
jmp 0x50b2f8
mov eax, ecx
xor eax, 1
cmp ecx, eax
je 0x50b4e9
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], ebx
mov ecx, dword [eax + ebx*4]
cmp ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
cmovb eax, dword [esp + 0x44]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
cmp ecx, 4
ja case.0x50b32d.0
jmp dword [ecx*4 + 0x50ba74]
push 0xcf1bbcdc
push 0xbb000000
push dword [edi + 4]
push dword [edi]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov ebx, eax
mov eax, dword [esp + 0x1c]
jmp 0x50b3d7
push 0xcf1bbcdc
push 0xbf9b0000
push dword [edi + 4]
push dword [edi]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov ebx, eax
mov eax, dword [esp + 0x1c]
jmp 0x50b3d7
push 0xcf1bbcdc
push 0xbfa56300
push dword [edi + 4]
push dword [edi]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov ebx, eax
mov eax, dword [esp + 0x1c]
jmp 0x50b3d7
push 0xcf1bbcdc
push 0xb7a56463
push dword [edi + 4]
push dword [edi]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov ebx, eax
mov eax, dword [esp + 0x1c]
jmp 0x50b3d7
imul ebx, dword [edi], 0x9e3779b1
mov ecx, dword [esp + 0x14]
shr ebx, cl
mov esi, dword [esp + 0x2c]
mov ecx, esi
mov edx, dword [esp + 0x7c]
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x58], ecx
mov dword [edi + edx*4], ecx
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ecx, dword [esi]
cmp edx, dword [esp + 0x34]
jb 0x50b409
mov eax, dword [eax + edx]
jmp 0x50b40e
mov eax, ecx
xor eax, 1
cmp ecx, eax
je 0x50b4e9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], ebx
mov eax, dword [eax + ebx*4]
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
cmovb ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
cmp eax, 4
ja case.0x50b43f.0
jmp dword [eax*4 + 0x50ba88]
push 0xcf1bbcdc
push 0xbb000000
mov eax, dword [esp + 0x40]
push dword [eax + 4]
push dword [eax]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov ebx, eax
jmp 0x50b49f
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x50b450
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x50b450
push 0xcf1bbcdc
push 0xb7a56463
jmp 0x50b450
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
imul ebx, dword [eax], 0x9e3779b1
shr ebx, cl
mov ecx, dword [esp + 0x38]
mov esi, edi
mov edx, dword [esp + 0x70]
add edi, edx
mov dword [esp + 0x2c], ecx
add ecx, edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x38], ecx
cmp ecx, dword [esp + 0x4c]
jae 0x50ba0b
mov ecx, dword [esp + 0x64]
lea eax, [edx + 1]
cmp edi, ecx
cmovb eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x70], eax
lea eax, [ecx + 0x80]
cmovb eax, ecx
mov dword [esp + 0x64], eax
jmp 0x50b281
mov eax, dword [esp + 0x58]
mov edi, 4
mov ecx, dword [esp + 0x60]
sub eax, edx
cmp edx, dword [esp + 0x28]
cmovb ecx, dword [esp + 0x80]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x30]
cmovb ecx, dword [esp + 0x5c]
add edx, dword [esp + 0x1c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], eax
add eax, 3
cmp dword [esp + 0x70], edx
mov dword [esp + 0x3c], ecx
sbb ecx, ecx
mov dword [esp + 0x6c], eax
neg ecx
mov dword [esp + 0x1c], edi
cmp dword [ebp + 0xc], esi
sbb eax, eax
neg eax
test eax, ecx
je 0x50b59d
mov al, byte [esi - 1]
cmp al, byte [edx - 1]
jne 0x50b564
inc dword [esp + 0x1c]
dec edx
dec esi
cmp dword [esp + 0x70], edx
sbb ecx, ecx
neg ecx
cmp dword [ebp + 0xc], esi
sbb eax, eax
neg eax
test eax, ecx
jne 0x50b543
mov ecx, dword [esp + 0x1c]
jmp 0x50b59f
cmp ecx, dword [esp + 0x28]
mov esi, edi
mov eax, dword [esp + 0x30]
cmovb eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x54], eax
mov al, byte [edi - 1]
cmp al, byte [edx - 1]
mov dword [esp + 0x6c], 1
sete cl
sub esi, ecx
sub edx, ecx
add ecx, 4
mov dword [esp + 0x1c], ecx
jmp 0x50b59f
mov ecx, edi
lea eax, [ecx + esi]
lea edi, [ecx + edx]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x30]
sub eax, edi
add eax, dword [esp + 0x54]
mov edx, edi
cmp eax, ecx
cmovb ecx, eax
push ecx
mov ecx, dword [esp + 0x74]
call fcn.00505190
mov ecx, eax
add esp, 4
mov dword [esp + 0x7c], ecx
lea eax, [ecx + edi]
cmp eax, dword [esp + 0x54]
jne 0x50b5f3
push dword [esp + 0x30]
add ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
call fcn.00505190
mov ecx, dword [esp + 0x80]
add esp, 4
add ecx, eax
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
add edi, ecx
mov edx, dword [ebp + 0xc]
add eax, 0xffffffe0
mov dword [esp + 0x50], eax
mov ecx, esi
mov eax, dword [esp + 0x20]
sub ecx, edx
add edx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x54], ecx
mov eax, dword [eax + 0xc]
cmp edx, dword [esp + 0x50]
ja 0x50b67a
mov edx, dword [ebp + 0xc]
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
cmp ecx, 0x10
jbe 0x50b690
movups xmm0, xmmword [edx + 0x10]
lea eax, [ecx - 0x10]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0xc]
add ecx, 0x10
lea edi, [ecx + eax]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x1c]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x50b68c
mov eax, dword [esp + 0x7c]
add ecx, 0x10
add edx, 0x20
nop
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 0x50b660
jmp 0x50b68c
push dword [esp + 0x50]
mov ecx, eax
push edx
mov edx, dword [ebp + 0xc]
call fcn.00505120
add esp, 8
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
add dword [eax + 0xc], ecx
mov edx, dword [eax + 4]
cmp ecx, 0xffff
jbe 0x50b6bf
mov edi, dword [esp + 0x20]
mov dword [eax + 0x24], 1
mov eax, edx
sub eax, dword [edi]
sar eax, 3
mov dword [edi + 0x28], eax
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov word [edx + 4], cx
lea edx, [edi - 3]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x6c]
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
cmp edx, 0xffff
jbe 0x50b6fb
mov edi, dword [esp + 0x20]
mov dword [eax + 0x24], 2
mov eax, ecx
sub eax, dword [edi]
sar eax, 3
mov dword [edi + 0x28], eax
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov word [ecx + 6], dx
add esi, edi
add dword [eax + 4], 8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov dword [ebp + 0xc], esi
cmp ecx, esi
jae 0x50b71d
sub ecx, edx
mov dword [edi + ebx*4], ecx
mov ebx, dword [esp + 0x48]
cmp esi, dword [esp + 0x4c]
ja 0x50b9db
mov eax, dword [esp + 0x58]
cmp ebx, 4
ja case.0x50b734.0
jmp dword [ebx*4 + 0x50ba9c]
push 0xcf1bbcdc
push 0xbb000000
push dword [eax + edx + 6]
lea edi, [eax + 2]
push dword [eax + edx + 2]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov ecx, dword [esp + 0x10]
mov dword [ecx + eax*4], edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
jmp switch.0x0050b7ae
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x50b745
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x50b745
push 0xcf1bbcdc
push 0xb7a56463
jmp 0x50b745
mov ecx, dword [esp + 0x18]
lea edx, [eax + 2]
imul eax, dword [eax + ecx + 2], 0x9e3779b1
mov ecx, dword [esp + 0x14]
shr eax, cl
mov dword [edi + eax*4], edx
cmp ebx, 4
ja case.0x50b7ae.0
jmp dword [ebx*4 + 0x50bab0]
push 0xcf1bbcdc
push 0xbb000000
push dword [esi + 2]
push dword [esi - 2]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov edx, eax
jmp 0x50b804
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x50b7bf
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x50b7bf
push 0xcf1bbcdc
push 0xb7a56463
jmp 0x50b7bf
imul edx, dword [esi - 2], 0x9e3779b1
shr edx, cl
mov ecx, dword [esp + 0x18]
mov eax, esi
sub eax, ecx
sub eax, 2
mov dword [edi + edx*4], eax
mov eax, dword [esp + 0x28]
mov edi, esi
sub edi, dword [esp + 0x3c]
mov edx, edi
sub edx, ecx
cmp edx, eax
jae 0x50b82a
mov edi, dword [esp + 0x44]
add edi, edx
sub eax, edx
dec eax
cmp eax, 3
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, dword [esp + 0x3c]
sbb eax, eax
neg eax
test eax, ecx
je 0x50b9db
mov eax, dword [edi]
cmp eax, dword [esi]
jne 0x50b9db
cmp edx, dword [esp + 0x28]
lea eax, [esi + 4]
mov ecx, dword [esp + 0x30]
mov ebx, ecx
cmovb ebx, dword [esp + 0x5c]
add edi, 4
sub eax, edi
mov edx, edi
add eax, ebx
cmp eax, ecx
cmovb ecx, eax
push ecx
lea ecx, [esi + 4]
call fcn.00505190
mov ecx, eax
add esp, 4
mov dword [esp + 0x7c], ecx
lea eax, [ecx + edi]
cmp eax, ebx
jne 0x50b8a6
push dword [esp + 0x30]
mov edx, dword [esp + 0x64]
lea eax, [esi + 4]
add ecx, eax
call fcn.00505190
mov ecx, dword [esp + 0x80]
add esp, 4
add ecx, eax
mov eax, dword [esp + 0x3c]
lea edi, [ecx + 4]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 0xc]
cmp esi, eax
ja 0x50b8d0
movups xmm0, xmmword [esi]
movups xmmword [ecx], xmm0
jmp 0x50b8dc
push eax
push esi
mov edx, esi
call fcn.00505120
add esp, 8
mov eax, dword [ebx + 4]
lea edx, [edi - 3]
xor ecx, ecx
mov word [eax + 4], cx
mov eax, dword [ebx + 4]
mov dword [eax], 1
mov ecx, dword [ebx + 4]
cmp edx, 0xffff
jbe 0x50b90d
mov eax, ecx
mov dword [ebx + 0x24], 2
sub eax, dword [ebx]
sar eax, 3
mov dword [ebx + 0x28], eax
mov word [ecx + 6], dx
add dword [ebx + 4], 8
mov ebx, dword [esp + 0x48]
cmp ebx, 4
ja case.0x50b922.0
jmp dword [ebx*4 + 0x50bac4]
push 0xcf1bbcdc
push 0xbb000000
push dword [esi + 4]
push dword [esi]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov edx, eax
jmp 0x50b9b9
push 0xcf1bbcdc
push 0xbf9b0000
push dword [esi + 4]
push dword [esi]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov edx, eax
jmp 0x50b9b9
push 0xcf1bbcdc
push 0xbfa56300
push dword [esi + 4]
push dword [esi]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov edx, eax
jmp 0x50b9b9
push 0xcf1bbcdc
push 0xb7a56463
push dword [esi + 4]
push dword [esi]
call fcn.00546f20
mov ecx, dword [esp + 0xc]
call fcn.00519d00
mov edx, eax
jmp 0x50b9b9
imul edx, dword [esi], 0x9e3779b1
mov ecx, dword [esp + 0x14]
shr edx, cl
mov ebx, dword [esp + 0x10]
mov eax, esi
mov ecx, dword [esp + 0x18]
add esi, edi
sub eax, ecx
mov dword [ebp + 0xc], esi
mov dword [ebx + edx*4], eax
mov ebx, dword [esp + 0x48]
cmp esi, dword [esp + 0x4c]
jbe 0x50b812
mov edi, dword [esp + 0x68]
lea eax, [esi + 0x80]
add edi, esi
mov dword [esp + 0x64], eax
lea edx, [esi + 1]
mov dword [esp + 0x54], edi
mov dword [esp + 0x2c], edx
lea ecx, [edi + 1]
cmp ecx, dword [esp + 0x4c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
jb 0x50b146
mov ebx, dword [ebp + 0xc]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x24]
test edx, edx
je 0x50ba26
test eax, eax
cmovne ecx, edx
mov esi, dword [ebp + 8]
test eax, eax
pop edi
cmovne edx, eax
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esi], edx
cmovne ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 4], ecx
sub eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret