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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
mov ebx, ecx
mov dword [esp + 0x50], edx
push esi
mov edx, 1
push edi
mov eax, dword [ebx + 0x5c]
mov esi, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xc0]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0xcc]
mov ecx, eax
neg ecx
mov dword [esp + 0x18], esi
sbb ecx, ecx
add eax, 2
add ecx, eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
sub eax, esi
mov dword [esp + 0x68], ecx
add eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0xb8]
shl edx, cl
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x3c], eax
sub eax, ecx
sub dword [esp + 0x3c], edx
cmp eax, edx
mov edx, dword [esp + 0x3c]
cmovbe edx, ecx
cmp dword [ebx + 0x18], 0
cmovne edx, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x3c], edx
mov edi, dword [esp + 0x3c]
lea eax, [edx + ecx]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0xc]
cmp eax, edx
cmovb eax, edx
mov dword [esp + 0x24], eax
lea edx, [eax + esi]
mov esi, dword [ebp + 0xc]
add eax, ecx
mov dword [esp + 0x60], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x10]
lea ecx, [esi + eax]
mov dword [esp + 0x30], ecx
add ecx, 0xfffffff8
cmp dword [esp + 0x24], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx]
mov edx, dword [edx + 4]
jne 0x515044
push eax
push esi
mov esi, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.00512f10
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, esi
mov dword [esp + 0x74], 0
mov eax, edi
mov ebx, edx
sub eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x18]
cmp edx, eax
cmovb ebx, dword [esp + 0x74]
mov dword [esp + 0x74], ebx
sbb ebx, ebx
and ebx, edx
mov edx, ecx
mov dword [esp + 0x44], ebx
xor ebx, ebx
cmp ecx, eax
cmovb edx, ebx
mov ebx, dword [esp + 0x68]
sbb eax, eax
mov dword [esp + 0x84], edx
and eax, ecx
lea edx, [edi + 1]
add ebx, edi
mov dword [esp + 0x2c], eax
lea eax, [edi + 0x80]
mov dword [esp + 0x38], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x4c], ebx
lea eax, [ebx + 1]
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x50]
jae 0x515950
mov eax, dword [esp + 0x44]
mov ecx, 0x20
sub ecx, dword [esp + 0x70]
mov edi, 0x40
sub edi, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x44], eax
add ecx, 0xfffffffc
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
cmp ecx, 4
ja case.0x5150ea.0
jmp dword [ecx*4 + 0x51598c]
push 0xcf1bbcdc
push 0xbb000000
push dword [esi + 4]
push dword [esi]
call fcn.00525430
mov ecx, edi
call fcn.00525010
mov edx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], edi
jmp switch.0x00515180
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x5150fb
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x5150fb
push 0xcf1bbcdc
push 0xb7a56463
push dword [esi + 4]
push dword [esi]
call fcn.00525430
mov ecx, edi
call fcn.00525010
mov edx, dword [esp + 0x38]
mov edi, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
jmp switch.0x00515180
imul edi, dword [esi], 0x9e3779b1
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
shr edi, cl
mov dword [esp + 0x20], edi
cmp eax, 4
ja case.0x515180.0
jmp dword [eax*4 + 0x5159a0]
push 0xcf1bbcdc
push 0xbb000000
push dword [edx + 4]
push dword [edx]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
mov dword [esp + 0x14], eax
jmp 0x5151da
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x515191
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x515191
push 0xcf1bbcdc
push 0xb7a56463
jmp 0x515191
imul edx, dword [edx], 0x9e3779b1
shr edx, cl
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [eax + edi*4]
mov eax, edx
cmp edi, dword [esp + 0x24]
cmovb eax, dword [esp + 0x48]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x70], eax
xor eax, eax
cmp eax, dword [esp + 0x2c]
sbb eax, eax
neg eax
mov dword [esp + 0x78], eax
nop word [eax + eax]
mov eax, dword [esp + 0x24]
mov ecx, ebx
sub ecx, dword [esp + 0x2c]
sub ecx, edx
cmp ecx, dword [esp + 0x24]
mov dword [esp + 0x7c], ecx
cmovb edx, dword [esp + 0x48]
sub eax, ecx
add edx, ecx
cmp eax, 4
sbb eax, eax
inc eax
test dword [esp + 0x78], eax
je 0x51523d
mov eax, dword [edx]
jmp 0x515242
mov eax, dword [ebx]
xor eax, 1
mov ebx, esi
mov dword [esp + 0x6c], eax
sub ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov dword [eax + ebx*4], ecx
mov ebx, dword [esp + 0x4c]
mov ecx, dword [ebx]
cmp ecx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
je 0x5154e3
mov ecx, dword [esp + 0x34]
cmp edi, dword [esp + 0x3c]
jb 0x515282
mov eax, dword [ecx + edi]
jmp 0x515287
mov eax, dword [esi]
xor eax, 1
cmp dword [esi], eax
je 0x51546e
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
cmp edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x18]
cmovb eax, dword [esp + 0x48]
mov dword [esp + 0x34], eax
cmp ecx, 4
ja case.0x5152bf.0
jmp dword [ecx*4 + 0x5159b4]
push 0xcf1bbcdc
push 0xbb000000
push dword [ebx + 4]
push dword [ebx]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
mov edx, eax
mov eax, dword [esp + 0x34]
jmp 0x51536a
push 0xcf1bbcdc
push 0xbf9b0000
push dword [ebx + 4]
push dword [ebx]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
mov edx, eax
mov eax, dword [esp + 0x34]
jmp 0x51536a
push 0xcf1bbcdc
push 0xbfa56300
push dword [ebx + 4]
push dword [ebx]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
mov edx, eax
mov eax, dword [esp + 0x34]
jmp 0x51536a
push 0xcf1bbcdc
push 0xb7a56463
push dword [ebx + 4]
push dword [ebx]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
mov edx, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
jmp 0x51536e
imul edx, dword [ebx], 0x9e3779b1
mov ecx, dword [esp + 0x10]
shr edx, cl
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x38]
mov ecx, esi
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x54], ecx
mov dword [ebx], ecx
mov ebx, dword [esp + 0x4c]
cmp edi, dword [esp + 0x3c]
jb 0x515399
mov eax, dword [eax + edi]
jmp 0x51539e
mov eax, dword [esi]
xor eax, 1
cmp dword [esi], eax
je 0x51546a
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + edx*4]
cmp edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
cmovb eax, dword [esp + 0x48]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
cmp eax, 4
ja case.0x5153c7.0
jmp dword [eax*4 + 0x5159c8]
push 0xcf1bbcdc
push 0xbb000000
mov eax, dword [esp + 0x48]
push dword [eax + 4]
push dword [eax]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
jmp 0x515425
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x5153d8
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x5153d8
push 0xcf1bbcdc
push 0xb7a56463
jmp 0x5153d8
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
imul eax, dword [eax], 0x9e3779b1
shr eax, cl
mov ecx, dword [esp + 0x40]
mov esi, ebx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
add ebx, eax
mov dword [esp + 0x38], ecx
add ecx, eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], ecx
cmp ebx, edx
jb 0x515457
inc eax
sub edx, 0xffffff80
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], edx
cmp ecx, dword [esp + 0x50]
jae 0x51594d
mov edx, dword [esp + 0x18]
jmp 0x515210
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x54]
mov ebx, 4
mov edx, dword [esp + 0x60]
sub eax, edi
cmp edi, dword [esp + 0x24]
cmovb edx, dword [esp + 0x80]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x30]
cmovb edx, dword [esp + 0x5c]
mov dword [esp + 0x40], edx
lea edx, [ecx + edi]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
add eax, 3
cmp dword [esp + 0x70], edx
mov dword [esp + 0x44], ecx
sbb ecx, ecx
mov dword [esp + 0x6c], eax
neg ecx
cmp dword [ebp + 0xc], esi
sbb eax, eax
neg eax
test eax, ecx
je 0x515512
mov al, byte [esi - 1]
cmp al, byte [edx - 1]
jne 0x515512
dec edx
dec esi
inc ebx
cmp dword [esp + 0x70], edx
sbb ecx, ecx
neg ecx
cmp dword [ebp + 0xc], esi
sbb eax, eax
neg eax
test eax, ecx
jne 0x5154c3
jmp 0x515512
cmp ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
cmovb eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov al, byte [ebx - 1]
xor ebx, ebx
cmp al, byte [edx - 1]
mov dword [esp + 0x6c], 1
sete bl
sub esi, ebx
sub edx, ebx
add ebx, 4
mov ecx, dword [esp + 0x30]
lea edi, [ebx + edx]
lea eax, [ebx + esi]
mov edx, edi
sub eax, edi
add eax, dword [esp + 0x40]
cmp eax, ecx
cmovb ecx, eax
push ecx
lea ecx, [ebx + esi]
call fcn.0050fe70
mov ecx, eax
add esp, 4
mov dword [esp + 0x7c], ecx
lea eax, [ecx + edi]
cmp eax, dword [esp + 0x40]
jne 0x515562
push dword [esp + 0x30]
mov edx, dword [esp + 0x64]
lea eax, [ebx + esi]
add ecx, eax
call fcn.0050fe70
mov ecx, dword [esp + 0x80]
add esp, 4
add ecx, eax
mov edx, dword [esp + 0x30]
add ebx, ecx
mov edi, dword [esp + 0x58]
mov ecx, esi
sub ecx, dword [ebp + 0xc]
add edx, 0xffffffe0
mov dword [esp + 0x4c], ecx
mov eax, dword [edi + 0xc]
cmp esi, edx
ja 0x5155d1
mov edx, dword [ebp + 0xc]
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
cmp ecx, 0x10
jbe 0x5155e4
movups xmm0, xmmword [edx + 0x10]
lea eax, [ecx - 0x10]
mov ecx, dword [edi + 0xc]
add ecx, 0x10
lea edi, [ecx + eax]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x58]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x5155e0
mov eax, dword [esp + 0x7c]
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 0x5155b7
jmp 0x5155e0
push edx
mov edx, dword [ebp + 0xc]
mov ecx, eax
push esi
call fcn.0050fe00
add esp, 8
mov ecx, dword [esp + 0x4c]
add dword [edi + 0xc], ecx
cmp ecx, 0xffff
jbe 0x515601
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 3
mov dword [edi + 0x24], 1
mov dword [edi + 0x28], eax
mov eax, dword [edi + 4]
mov word [eax + 4], cx
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x6c]
mov dword [eax], ecx
lea ecx, [ebx - 3]
cmp ecx, 0xffff
jbe 0x51562e
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 3
mov dword [edi + 0x24], 2
mov dword [edi + 0x28], eax
mov eax, dword [edi + 4]
add esi, ebx
mov edx, dword [esp + 0x18]
mov dword [ebp + 0xc], esi
mov word [eax + 6], cx
add dword [edi + 4], 8
mov ecx, dword [esp + 0x38]
cmp ecx, esi
jae 0x515657
mov eax, dword [esp + 0x14]
sub ecx, edx
mov ebx, dword [esp + 0x1c]
mov dword [ebx + eax*4], ecx
cmp esi, dword [esp + 0x50]
ja 0x515919
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x54]
cmp edi, 4
ja case.0x51566e.0
jmp dword [edi*4 + 0x5159dc]
push 0xcf1bbcdc
push 0xbb000000
push dword [ebx + edx + 6]
push dword [ebx + edx + 2]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
mov ecx, eax
lea eax, [ebx + 2]
mov ebx, dword [esp + 0x1c]
mov dword [ebx + ecx*4], eax
mov ecx, dword [esp + 0x10]
jmp switch.0x005156e8
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x51567f
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x51567f
push 0xcf1bbcdc
push 0xb7a56463
jmp 0x51567f
imul edx, dword [ebx + edx + 2], 0x9e3779b1
lea eax, [ebx + 2]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
shr edx, cl
mov dword [ebx + edx*4], eax
cmp edi, 4
ja case.0x5156e8.0
jmp dword [edi*4 + 0x5159f0]
push 0xcf1bbcdc
push 0xbb000000
push dword [esi + 2]
push dword [esi - 2]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
mov edx, eax
jmp 0x51573e
push 0xcf1bbcdc
push 0xbf9b0000
jmp 0x5156f9
push 0xcf1bbcdc
push 0xbfa56300
jmp 0x5156f9
push 0xcf1bbcdc
push 0xb7a56463
jmp 0x5156f9
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 [ebx + edx*4], eax
nop dword [eax]
mov ebx, dword [esp + 0x44]
mov edi, esi
mov eax, dword [esp + 0x24]
sub edi, ebx
mov edx, edi
sub edx, ecx
cmp edx, eax
jae 0x51576a
mov edi, dword [esp + 0x48]
add edi, edx
sub eax, edx
dec eax
cmp eax, 3
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, ebx
sbb eax, eax
neg eax
test eax, ecx
je 0x515919
mov eax, dword [edi]
cmp eax, dword [esi]
jne 0x515919
cmp edx, dword [esp + 0x24]
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.0050fe70
mov ecx, eax
add esp, 4
mov dword [esp + 0x7c], ecx
lea eax, [ecx + edi]
cmp eax, ebx
jne 0x5157e4
push dword [esp + 0x30]
mov edx, dword [esp + 0x64]
lea eax, [esi + 4]
add ecx, eax
call fcn.0050fe70
mov ecx, dword [esp + 0x80]
add esp, 4
add ecx, eax
mov eax, dword [esp + 0x44]
lea ebx, [ecx + 4]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
add eax, 0xffffffe0
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0xc]
cmp esi, eax
ja 0x515811
movups xmm0, xmmword [esi]
movups xmmword [ecx], xmm0
jmp 0x51581d
push eax
push esi
mov edx, esi
call fcn.0050fe00
add esp, 8
mov eax, dword [edi + 4]
xor ecx, ecx
mov word [eax + 4], cx
lea ecx, [ebx - 3]
mov eax, dword [edi + 4]
mov dword [eax], 1
cmp ecx, 0xffff
jbe 0x51584c
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 3
mov dword [edi + 0x24], 2
mov dword [edi + 0x28], eax
mov eax, dword [edi + 4]
mov word [eax + 6], cx
add dword [edi + 4], 8
mov eax, dword [esp + 0x28]
cmp eax, 4
ja case.0x515864.0
jmp dword [eax*4 + 0x515a04]
push 0xcf1bbcdc
push 0xbb000000
push dword [esi + 4]
push dword [esi]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
mov edx, eax
jmp 0x5158fb
push 0xcf1bbcdc
push 0xbf9b0000
push dword [esi + 4]
push dword [esi]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
mov edx, eax
jmp 0x5158fb
push 0xcf1bbcdc
push 0xbfa56300
push dword [esi + 4]
push dword [esi]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
mov edx, eax
jmp 0x5158fb
push 0xcf1bbcdc
push 0xb7a56463
push dword [esi + 4]
push dword [esi]
call fcn.00525430
mov ecx, dword [esp + 0xc]
call fcn.00525010
mov edx, eax
jmp 0x5158fb
imul edx, dword [esi], 0x9e3779b1
mov ecx, dword [esp + 0x10]
shr edx, cl
mov edi, dword [esp + 0x1c]
mov eax, esi
mov ecx, dword [esp + 0x18]
add esi, ebx
sub eax, ecx
mov dword [ebp + 0xc], esi
mov dword [edi + edx*4], eax
cmp esi, dword [esp + 0x50]
jbe 0x515750
mov ebx, dword [esp + 0x68]
lea eax, [esi + 0x80]
mov edi, dword [esp + 0xc]
lea edx, [esi + 1]
add ebx, esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], ebx
lea ecx, [ebx + 1]
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x28]
jb 0x5150e5
mov edi, dword [ebp + 0xc]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x2c]
test edx, edx
je 0x515968
test eax, eax
cmovne ecx, edx
mov esi, dword [ebp + 8]
test eax, eax
cmovne edx, eax
mov eax, dword [esp + 0x44]
test eax, eax
mov dword [esi], edx
cmovne ecx, eax
mov eax, dword [esp + 0x30]
sub eax, edi
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret