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

Disassembly:
sub esp, 0x48
mov edx, dword [esp + 0x5c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
mov ebp, 1
push edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 4]
mov ebx, dword [esi + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xc0]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xcc]
mov ecx, eax
neg ecx
mov dword [esp + 0x10], edi
sbb ecx, ecx
add eax, 2
add ecx, eax
mov eax, dword [esp + 0x68]
sub eax, edi
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0xb8]
add eax, edx
shl ebp, cl
mov ecx, dword [esi + 0xc]
mov esi, eax
sub eax, ecx
mov dword [esp + 0x6c], ecx
sub esi, ebp
cmp eax, ebp
cmovbe esi, ecx
test ebx, ebx
cmovne esi, ecx
mov dword [esp + 0x30], esi
lea eax, [esi + edi]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x34], eax
lea eax, [esi + edx]
mov dword [esp + 0x14], eax
add eax, 0xfffffff8
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 4]
mov edi, dword [eax]
xor eax, eax
cmp esi, dword [esp + 0x34]
sete al
add eax, esi
mov esi, eax
mov dword [esp + 0x48], eax
sub esi, dword [esp + 0x10]
mov eax, esi
sub eax, ecx
mov ecx, esi
sub ecx, ebp
cmp eax, ebp
cmovbe ecx, dword [esp + 0x6c]
test ebx, ebx
cmovne ecx, dword [esp + 0x6c]
sub esi, ecx
mov ecx, dword [esp + 0x68]
cmp esi, edx
sbb eax, eax
xor ebp, ebp
and eax, edx
cmp edx, esi
mov dword [esp + 0x4c], eax
cmovbe ebp, edx
cmp esi, edi
mov dword [esp + 0x1c], ebp
sbb eax, eax
xor edx, edx
and eax, edi
cmp edi, esi
mov esi, dword [esp + 0x34]
cmovbe edx, edi
mov dword [esp + 0x54], eax
xor eax, eax
cmp ecx, esi
mov edi, dword [esp + 0x3c]
sete al
mov ebx, dword [esp + 0x48]
sub eax, 0xffffff80
add eax, ecx
mov dword [esp + 0x38], eax
xor eax, eax
cmp ecx, esi
sete al
add edi, ebx
inc eax
add eax, ecx
mov dword [esp + 0x24], eax
xor eax, eax
cmp ecx, esi
sete al
inc eax
add eax, ecx
add eax, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x2c]
jae 0x511476
mov eax, dword [esp + 0x1c]
mov ebp, 0x40
sub ebp, dword [esp + 0x44]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jmp 0x510e74
mov ebp, dword [esp + 0x20]
push 0xcf1bbcdc
push 0xbfa56300
push dword [ebx + 4]
push dword [ebx]
call fcn.0052c240
mov ecx, ebp
call fcn.0052c220
mov esi, eax
mov eax, dword [esp + 0x24]
push 0xcf1bbcdc
push 0xbfa56300
push dword [eax + 4]
push dword [eax]
call fcn.0052c240
mov ecx, ebp
call fcn.0052c220
mov dword [esp + 0x28], eax
mov edx, ebx
mov eax, dword [esp + 0x5c]
mov ebp, eax
sub edx, dword [esp + 0x10]
mov dword [esp + 0x48], edx
mov ecx, dword [eax + esi*4]
mov dword [esp + 0x6c], ecx
mov ecx, edi
sub ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov dword [ebp + esi*4], edx
xor edx, edx
cmp edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x48]
sbb edx, edx
neg edx
xor eax, eax
cmp dword [edi], ecx
mov dword [esp + 0x50], edx
sete al
test edx, eax
jne 0x51102b
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x10]
cmp eax, dword [esp + 0x30]
jb 0x510f17
mov ecx, dword [eax + edx]
jmp 0x510f1c
mov ecx, dword [ebx]
xor ecx, 1
cmp dword [ebx], ecx
je 0x511085
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x5c]
push 0xcf1bbcdc
push 0xbfa56300
push dword [edi + 4]
mov ecx, dword [ecx + eax*4]
push dword [edi]
mov dword [esp + 0x7c], ecx
call fcn.0052c240
mov ecx, dword [esp + 0x20]
call fcn.0052c220
mov ebx, dword [esp + 0x24]
mov esi, ebx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x10]
sub esi, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + eax*4], esi
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x30]
jb 0x510f7a
mov ecx, dword [eax + edx]
jmp 0x510f7f
mov ecx, dword [ebx]
xor ecx, 1
cmp dword [ebx], ecx
je 0x51106e
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
push 0xcf1bbcdc
push 0xbfa56300
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x74], ecx
push dword [eax + 4]
push dword [eax]
call fcn.0052c240
mov ecx, dword [esp + 0x20]
call fcn.0052c220
mov edx, dword [esp + 0x44]
mov ebx, edi
mov dword [esp + 0x28], eax
add edi, edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
add eax, edx
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x2c]
jae 0x51146a
mov ebp, dword [esp + 0x5c]
mov eax, edi
sub eax, dword [esp + 0x18]
mov esi, ebx
sub esi, dword [esp + 0x10]
cmp edi, dword [esp + 0x38]
mov ecx, dword [eax]
mov eax, dword [esp + 0x48]
mov dword [ebp + eax*4], esi
lea eax, [edx + 1]
mov ebp, dword [esp + 0x60]
cmovb eax, edx
mov edx, dword [esp + 0x38]
cmp edi, edx
mov dword [esp + 0x44], eax
lea eax, [edx + 0x80]
cmovb eax, edx
mov dword [esp + 0x38], eax
xor eax, eax
cmp dword [edi], ecx
sete al
test dword [esp + 0x50], eax
je 0x510f04
mov al, byte [edi - 1]
mov edx, edi
sub edx, dword [esp + 0x18]
xor ecx, ecx
mov ebp, dword [esp + 0x5c]
mov ebx, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x44], 1
cmp al, byte [edx - 1]
mov eax, dword [esp + 0x24]
sete cl
sub ebx, ecx
sub edx, ecx
add ecx, 4
sub eax, dword [esp + 0x10]
mov dword [ebp + edi*4], eax
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
jmp 0x51110c
cmp dword [esp + 0x44], 4
ja 0x51109b
mov ecx, dword [esp + 0x48]
sub edi, edx
mov ebp, dword [esp + 0x5c]
mov dword [ebp + ecx*4], edi
jmp 0x511097
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
sub ecx, edx
mov dword [ebp + edi*4], ecx
mov ebp, dword [esp + 0x60]
add edx, eax
mov edi, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, ebx
sub eax, edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x18], eax
add eax, 3
cmp dword [esp + 0x34], edx
mov dword [esp + 0x44], eax
sbb ecx, ecx
neg ecx
cmp dword [esp + 0x68], ebx
sbb eax, eax
neg eax
test eax, ecx
je 0x51110a
lea eax, [edx - 1]
mov dword [esp + 0x48], eax
mov ebp, eax
mov al, byte [ebx - 1]
cmp al, byte [ebp]
mov ebp, dword [esp + 0x60]
jne 0x511104
mov edx, dword [esp + 0x48]
inc edi
dec ebx
mov dword [esp + 0x6c], edi
cmp dword [esp + 0x34], edx
sbb ecx, ecx
neg ecx
cmp dword [esp + 0x68], ebx
sbb eax, eax
neg eax
test eax, ecx
jne 0x5110d1
mov ecx, dword [esp + 0x6c]
jmp 0x51110c
mov ecx, edi
mov edi, dword [esp + 0x14]
add edx, ecx
add ecx, ebx
add edi, 0xfffffffd
mov dword [esp + 0x48], ecx
cmp ecx, edi
jae 0x511154
mov eax, dword [ecx]
xor eax, dword [edx]
je 0x51112d
bsf eax, eax
shr eax, 3
jmp 0x51117e
add ecx, 4
add edx, 4
cmp ecx, edi
jae 0x511154
nop word [eax + eax]
mov eax, dword [ecx]
xor eax, dword [edx]
jne 0x5111fc
add ecx, 4
add edx, 4
cmp ecx, edi
jb 0x511140
mov eax, dword [esp + 0x14]
dec eax
cmp ecx, eax
jae 0x51116b
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x51116b
add ecx, 2
add edx, 2
cmp ecx, dword [esp + 0x14]
jae 0x511178
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x511178
inc ecx
mov eax, ecx
sub eax, dword [esp + 0x48]
add dword [esp + 0x6c], eax
mov eax, ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x68]
sub eax, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xffffffe0
mov dword [esp + 0x68], eax
cmp ebx, ecx
mov ecx, dword [esp + 0x6c]
ja 0x51120d
mov ebp, dword [esp + 0x48]
movups xmm0, xmmword [edx]
movups xmmword [ebp], xmm0
mov ebp, dword [esp + 0x60]
cmp eax, 0x10
jbe 0x51122b
mov ecx, dword [ebp + 0xc]
add eax, 0xfffffff0
movups xmm0, xmmword [edx + 0x10]
add ecx, 0x10
lea ebp, [ecx + eax]
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x60]
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x511223
mov eax, dword [esp + 0x50]
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 0x5111e2
jmp 0x511223
bsf eax, eax
shr eax, 3
sub eax, dword [esp + 0x48]
add eax, ecx
jmp 0x51117e
mov eax, dword [esp + 0x14]
add eax, 0xffffffe0
push eax
push ebx
push edx
push dword [esp + 0x54]
call fcn.005119a0
add esp, 0x10
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
add dword [ebp + 0xc], eax
cmp eax, 0xffff
jbe 0x511248
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 edx, dword [esp + 0x68]
mov word [eax + 4], dx
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x44]
mov dword [eax], edx
lea edx, [ecx - 3]
cmp edx, 0xffff
jbe 0x51127a
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, ecx
mov dword [esp + 0x68], ebx
mov word [eax + 6], dx
add dword [ebp + 4], 8
cmp ebx, dword [esp + 0x2c]
ja 0x511442
mov eax, dword [esp + 0x10]
push 0xcf1bbcdc
push 0xbfa56300
push dword [esi + eax + 6]
push dword [esi + eax + 2]
call fcn.0052c240
mov ecx, dword [esp + 0x20]
call fcn.0052c220
mov ecx, eax
lea eax, [esi + 2]
mov esi, dword [esp + 0x5c]
push 0xcf1bbcdc
push 0xbfa56300
mov dword [esi + ecx*4], eax
push dword [ebx + 2]
push dword [ebx - 2]
call fcn.0052c240
mov ecx, dword [esp + 0x20]
call fcn.0052c220
mov ecx, ebx
sub ecx, dword [esp + 0x10]
sub ecx, 2
mov dword [esi + eax*4], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x511442
mov esi, ebx
jmp 0x511304
mov eax, dword [esp + 0x1c]
mov edx, ebx
sub edx, eax
mov eax, dword [ebx]
cmp eax, dword [edx]
jne 0x51143e
lea eax, [ebx + 4]
add edx, 4
mov dword [esp + 0x68], eax
cmp eax, edi
jae 0x511354
mov ecx, dword [eax]
xor ecx, dword [edx]
je 0x51132e
bsf ecx, ecx
shr ecx, 3
jmp 0x51137e
add eax, 4
add edx, 4
cmp eax, edi
jae 0x511354
nop dword [eax + eax]
mov ecx, dword [eax]
xor ecx, dword [edx]
jne 0x5113d9
add eax, 4
add edx, 4
cmp eax, edi
jb 0x511340
mov ecx, dword [esp + 0x14]
dec ecx
cmp eax, ecx
jae 0x51136b
mov cx, word [edx]
cmp cx, word [eax]
jne 0x51136b
add eax, 2
add edx, 2
cmp eax, dword [esp + 0x14]
jae 0x511378
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x511378
inc eax
mov ecx, eax
sub ecx, dword [esp + 0x68]
push 0xcf1bbcdc
push 0xbfa56300
push dword [ebx + 4]
lea eax, [ecx + 4]
mov ecx, dword [esp + 0x24]
push dword [ebx]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
call fcn.0052c240
mov ecx, dword [esp + 0x20]
call fcn.0052c220
mov edx, dword [esp + 0x5c]
mov ecx, ebx
sub ecx, dword [esp + 0x10]
add ebx, dword [esp + 0x68]
mov dword [edx + eax*4], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
add ecx, 0xffffffe0
cmp esi, ecx
ja 0x5113e7
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
jmp 0x5113f3
bsf ecx, ecx
shr ecx, 3
sub ecx, dword [esp + 0x68]
add ecx, eax
jmp 0x51137e
push ecx
push esi
push esi
push eax
call fcn.005119a0
add esp, 0x10
mov eax, dword [ebp + 4]
xor ecx, ecx
mov word [eax + 4], cx
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x68]
add ecx, 0xfffffffd
mov dword [eax], 1
cmp ecx, 0xffff
jbe 0x511427
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 esi, ebx
mov word [eax + 6], cx
add dword [ebp + 4], 8
cmp ebx, dword [esp + 0x2c]
jbe 0x511300
mov dword [esp + 0x68], esi
mov edi, dword [esp + 0x3c]
lea eax, [ebx + 0x80]
add edi, ebx
mov dword [esp + 0x38], eax
lea eax, [ebx + 1]
mov dword [esp + 0x24], eax
lea eax, [edi + 1]
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x2c]
jb 0x510e70
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
test ebx, ebx
je 0x511487
test edx, edx
cmovne eax, ebx
test edx, edx
pop edi
cmovne ebx, edx
mov edx, dword [esp + 0x60]
test ebp, ebp
pop esi
cmovne eax, ebp
mov dword [edx + 4], eax
mov eax, dword [esp + 0xc]
pop ebp
mov dword [edx], ebx
sub eax, ecx
pop ebx
add esp, 0x48
ret