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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov edi, ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [esp + 0x98], eax
mov ecx, dword [ecx + 0x10]
lea eax, [ecx + 1]
cmp eax, dword [edi + 0xc]
ja 0x5019fb
mov edx, dword [edi + 8]
mov dword [edi + 0x10], eax
cmp byte [edx + ecx], 0x5b
jne 0x5019fd
mov eax, dword [edi + 0x14]
inc eax
mov dword [edi + 0x14], eax
cmp eax, dword [edi + 4]
jae 0x501a43
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ecx, edi
call fcn.00500530
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 4
mov dword [esp + 0x14], eax
mov dword [esp], edi
cmp esi, 3
je 0x50182c
pcmpeqd xmm1, xmm1
movdqu xmmword [esp + 0x5c], xmm1
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm1
cmp esi, 8
ja case.0x501318.1
jmp dword [esi*4 + 0x5f4150]
mov dword [esp + 4], esi
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
cmp edx, eax
ja 0x5019b4
mov ecx, dword [edi + 8]
mov dword [esp + 0x10], ecx
add ecx, edx
lea esi, [edx + 1]
cmp esi, eax
mov dword [esp + 8], eax
ja 0x50134e
cmp byte [ecx], 0x2d
je 0x501aa7
mov edi, esi
mov esi, edx
cmp edi, eax
ja 0x501928
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], ecx
xor edx, edx
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov al, byte [eax + esi]
mov ah, al
add ah, 0xd0
cmp ah, 9
ja 0x50139b
mov ebx, edi
test ecx, ecx
movzx eax, al
movzx edx, dl
cmove edx, eax
inc ecx
mov eax, dword [esp]
mov dword [eax + 0x10], edi
inc edi
mov esi, ebx
mov eax, dword [esp + 8]
cmp edi, eax
jbe 0x501366
jmp 0x501920
mov eax, dword [esp + 8]
test ecx, ecx
je 0x501928
cmp ecx, 1
mov edi, dword [esp]
je 0x5013b8
cmp dl, 0x30
je 0x501928
lea ecx, [esi + 1]
cmp ecx, eax
mov ebx, dword [esp + 0xc]
ja 0x5013d1
mov edx, dword [esp + 0x10]
cmp byte [edx + esi], 0x2e
je 0x501ab9
cmp ecx, eax
ja 0x5013e9
mov dword [esp + 8], eax
mov edx, dword [edi + 8]
mov al, byte [edx + esi]
or al, 0x20
cmp al, 0x65
je 0x501ae2
mov ecx, edi
call fcn.00500530
dec eax
ror eax, 1
cmp eax, 5
ja 0x5019d8
mov ecx, 0x33
bt ecx, eax
jae 0x5019d8
mov dword [edi + 0x10], esi
sub esi, dword [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
lea eax, [esp + 0x28]
push eax
push esi
push ebx
call fcn.004e2370
add esp, 0xc
test al, al
je 0x501b20
lea esi, [esp + 0x78]
mov ecx, esi
push dword [esp + 0x28]
call fcn.004e6ba0
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x54]
push esi
call fcn.004e6a00
mov ecx, esi
call fcn.004e7f10
mov esi, dword [esp + 4]
cmp byte [esp + 0x50], 0
je 0x50170d
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp esi, eax
jb 0x501653
mov edx, dword [esp + 0x1c]
mov ecx, esi
sub ecx, edx
sar ecx, 2
imul ebx, ecx, 0xcccccccd
lea ecx, [ebx + 1]
cmp ecx, 0xccccccd
jae 0x5019b7
mov dword [esp + 0x10], edx
sub eax, edx
sar eax, 2
imul eax, eax, 0xcccccccd
lea edi, [eax + eax]
cmp edi, ecx
cmovb edi, ecx
cmp eax, 0x6666666
mov eax, 0xccccccc
cmovae edi, eax
test edi, edi
mov dword [esp + 8], esi
je 0x5019d1
cmp edi, 0xccccccd
jae 0x5019c0
lea eax, [edi*4]
lea eax, [eax + eax*4]
push eax
call fcn.00503d75
add esp, 4
mov esi, eax
lea ecx, [ebx + ebx*4]
mov dword [esp + 4], ecx
lea ebx, [esi + ecx*4]
lea eax, [edi + edi*4]
lea edi, [esi + eax*4]
mov ecx, ebx
lea eax, [esp + 0x54]
push eax
call fcn.004e6a00
mov eax, dword [esp + 4]
lea eax, [esi + eax*4]
add eax, 0x14
mov esi, dword [esp + 8]
cmp esi, dword [esp + 0x10]
je 0x50162b
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov edi, dword [esp + 0x10]
add esi, 0xffffffec
add ebx, 0xffffffec
mov ecx, ebx
push esi
call fcn.004e6a00
cmp esi, edi
jne 0x501525
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x24], eax
mov esi, dword [esp + 8]
add esi, 0xffffffec
mov ecx, esi
call fcn.004e7f10
cmp esi, edi
jne 0x50154f
mov esi, edi
mov edi, dword [esp]
test esi, esi
je 0x50156f
push esi
call fcn.00503da5
add esp, 4
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
lea esi, [ecx + 1]
cmp esi, edx
ja 0x5015de
nop dword [eax]
mov eax, dword [esp]
mov eax, dword [eax + 8]
movzx ebx, byte [eax + ecx]
movsx edi, bl
cmp edi, 0x20
jne 0x5015a3
mov eax, dword [esp]
mov dword [eax + 0x10], esi
mov ecx, esi
add esi, 1
cmp esi, edx
jbe 0x501580
jmp case.0x5015ab.11
add edi, 0xfffffff7
cmp edi, 0x26
ja case.0x5015ab.11
jmp dword [edi*4 + 0x5f4174]
mov edi, dword [esp]
mov dword [edi + 0x1c], ecx
cmp bl, 0xa
jne 0x5015d0
test ecx, ecx
jle 0x5015d0
dec ecx
cmp edx, ecx
jbe 0x5019c5
cmp byte [eax + ecx], 0xd
je case.0x5015ab.9
mov eax, dword [esp]
inc dword [eax + 0x18]
jmp case.0x5015ab.9
lea esi, [ecx + 1]
mov edi, dword [esp]
cmp esi, edx
ja 0x501916
mov eax, dword [edi + 8]
movsx eax, byte [eax + ecx]
mov esi, 3
mov bl, 1
cmp eax, 0x5c
jg 0x50163c
lea esi, [eax - 0x22]
cmp esi, 0x18
ja case.default.0x501605
jmp dword [esi*4 + 0x5f4210]
inc ecx
cmp ecx, edx
ja 0x501614
mov dword [edi + 0x10], ecx
mov ecx, edi
call fcn.00500530
cmp eax, 3
je 0x501bd5
mov esi, eax
jmp 0x501728
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
jmp 0x50155f
cmp eax, 0x73
jg 0x5017ca
cmp eax, 0x5d
je 0x501728
jmp 0x5018ab
mov ecx, esi
lea eax, [esp + 0x54]
push eax
call fcn.004e6a00
add esi, 0x14
mov dword [esp + 0x20], esi
jmp 0x50156f
mov ecx, edi
lea eax, [esp + 0x50]
push eax
call fcn.00501280
jmp 0x501459
lea eax, [esp + 0x80]
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], 0xffffffff
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov byte [esp + 0x80], 0
mov ecx, edi
lea eax, [esp + 0x78]
push eax
call fcn.00501c50
test al, al
je 0x501ba8
cmp byte [esp + 0x80], 0
mov dword [esp + 4], esi
jne 0x5018e0
mov ebx, dword [esp + 0x7c]
cmp ebx, 0xfffffff0
jae 0x5019c8
mov eax, dword [esp + 0x78]
cmp ebx, 0xb
jae 0x501745
mov byte [esp + 0x33], bl
lea esi, [esp + 0x28]
test ebx, ebx
jne 0x501773
jmp 0x50177e
mov esi, 4
xor edx, edx
inc edx
mov dword [edi + 0x20], edx
mov eax, dword [edi + 0x18]
mov dword [edi + 0x24], eax
sub ecx, dword [edi + 0x1c]
test ecx, ecx
cmovle ecx, edx
mov dword [edi + 0x28], ecx
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov eax, dword [esp + 0x14]
pxor xmm0, xmm0
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], 0
xor ebx, ebx
cmp byte [esp + 0x50], 0
je 0x501738
lea ecx, [esp + 0x54]
call fcn.004e7f10
test bl, bl
jne 0x5012f2
jmp 0x50185f
lea edi, [ebx + 0x10]
and edi, 0xfffffff0
push edi
mov dword [esp + 0xc], eax
call fcn.00503d75
add esp, 4
mov esi, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x28], esi
or edi, 0x80000000
mov dword [esp + 0x30], edi
mov edi, dword [esp]
mov dword [esp + 0x2c], ebx
push ebx
push eax
push esi
call fcn.00507560
add esp, 0xc
mov byte [esi + ebx], 0
lea esi, [esp + 0x38]
mov ecx, esi
lea eax, [esp + 0x28]
push eax
call fcn.004e6bc0
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x54]
push esi
call fcn.004e6a00
mov ecx, esi
call fcn.004e7f10
cmp byte [esp + 0x33], 0
js 0x501bc4
mov esi, dword [esp + 4]
cmp byte [esp + 0x80], 0
je 0x501459
jmp 0x5018be
cmp eax, 0x7d
je 0x501890
xor esi, esi
cmp eax, 0x7b
je 0x5016f6
jmp 0x501898
mov esi, 5
jmp 0x5016f6
mov esi, 0xa
jmp 0x5016f6
cmp eax, 0x5b
jne case.0x501605.35
mov esi, 2
jmp 0x5016f6
mov ecx, edi
lea eax, [esp + 0x50]
push eax
call fcn.004b1f80
jmp 0x501459
mov ecx, edi
lea eax, [esp + 0x50]
push eax
call fcn.00500af0
jmp 0x501459
mov eax, dword [edi + 0x10]
inc eax
cmp eax, dword [edi + 0xc]
ja 0x501838
mov dword [edi + 0x10], eax
lea eax, [esp + 0x1c]
lea esi, [esp + 0x78]
mov ecx, esi
push eax
call fcn.004e7010
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov ecx, dword [esp + 0x14]
push esi
call fcn.004e6a00
mov ecx, esi
call fcn.004e7f10
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x501a79
mov edi, dword [esp]
mov eax, dword [edi + 0x14]
dec eax
mov dword [edi + 0x14], eax
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.00504596
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
xor esi, esi
inc esi
jmp 0x5016f6
cmp eax, 0x74
jne case.0x501605.35
mov esi, 6
jmp 0x5016f6
cmp eax, 0x66
jne 0x501981
mov esi, 7
jmp 0x5016f6
cmp byte [esp + 0x8f], 0
jns 0x501459
push dword [esp + 0x84]
call fcn.00503da5
add esp, 4
jmp 0x501459
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x30], eax
movq xmm0, qword [esp + 0x84]
movq qword [esp + 0x28], xmm0
xor eax, eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], eax
jmp 0x501782
mov esi, 0xb
jmp 0x5016f6
dec edi
mov esi, edi
jmp 0x50139f
xor eax, eax
inc eax
mov edi, dword [esp]
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x24], ecx
sub esi, dword [edi + 0x1c]
test esi, esi
cmovle esi, eax
mov dword [edi + 0x28], esi
mov byte [esp + 0x50], 0
pxor xmm0, xmm0
movdqu xmmword [esp + 0x54], xmm0
mov dword [esp + 0x64], 0
mov esi, dword [esp + 4]
jmp 0x50170d
mov esi, dword [esp]
mov ecx, esi
call fcn.004b1ef0
mov edx, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov ecx, esi
test al, al
jne 0x501598
jmp case.0x5015ab.11
cmp eax, 0x6e
jne case.0x501605.35
mov esi, 8
jmp 0x5016f6
mov dword [esp + 4], esi
mov dword [edi + 0x20], 3
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x24], ecx
sub eax, dword [edi + 0x1c]
xor ecx, ecx
inc ecx
test eax, eax
cmovg ecx, eax
mov dword [edi + 0x28], ecx
jmp 0x501942
int3
lea ecx, [esp + 0x1c]
call fcn.00534620
call fcn.00517b60
int3
lea ecx, [esp + 0x28]
call fcn.0054ed10
xor esi, esi
jmp 0x5014e5
xor eax, eax
inc eax
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
mov dword [edi + 0x24], edx
sub ecx, dword [edi + 0x1c]
test ecx, ecx
cmovle ecx, eax
jmp 0x5019af
mov esi, 0xc
jmp 0x5016f6
mov eax, ecx
mov dword [edi + 0x20], 3
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x24], ecx
sub eax, dword [edi + 0x1c]
xor ecx, ecx
inc ecx
test eax, eax
cmovg ecx, eax
mov dword [edi + 0x28], ecx
mov esi, dword [ebp + 8]
mov byte [esi], 0
pxor xmm0, xmm0
movdqu xmmword [esi + 4], xmm0
mov dword [esi + 0x14], 0
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.00504596
mov eax, esi
jmp 0x501886
mov dword [edi + 0x20], 5
mov edx, dword [edi + 0x18]
mov dword [edi + 0x24], edx
sub ecx, dword [edi + 0x1c]
xor edx, edx
inc edx
test ecx, ecx
cmovg edx, ecx
mov dword [edi + 0x28], edx
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
pxor xmm0, xmm0
movdqu xmmword [ecx + 4], xmm0
mov dword [ecx + 0x14], 0
jmp 0x501871
mov esi, dword [esp + 0x20]
mov eax, edi
cmp esi, edi
je 0x501a95
add esi, 0xffffffec
mov ecx, esi
call fcn.004e7f10
cmp esi, edi
jne 0x501a83
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
push eax
call fcn.00503da5
add esp, 4
jmp 0x50186b
mov eax, dword [esp]
mov dword [eax + 0x10], esi
mov eax, dword [esp + 8]
lea edi, [edx + 2]
jmp 0x501352
mov dword [edi + 0x10], ecx
mov ecx, edi
push 1
call fcn.00598cb0
test al, al
je 0x501b9d
mov edi, dword [esp]
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
lea ecx, [esi + 1]
mov ebx, dword [esp + 0xc]
jmp 0x5013d1
mov dword [edi + 0x10], ecx
add esi, 2
cmp esi, dword [esp + 8]
ja 0x501aff
mov al, byte [edx + ecx]
cmp al, 0x2d
je 0x501af9
cmp al, 0x2b
jne 0x501aff
mov eax, dword [esp]
mov dword [eax + 0x10], esi
mov ecx, dword [esp]
push 1
call fcn.00598cb0
test al, al
je 0x501b9d
mov edi, dword [esp]
mov esi, dword [edi + 0x10]
mov ebx, dword [esp + 0xc]
jmp 0x5013e9
xor eax, eax
dec eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push esi
push ebx
call fcn.00457ec0
add esp, 0xc
test al, al
je 0x501b60
movq xmm0, qword [esp + 0x38]
movq qword [esp + 0x78], xmm0
lea eax, [esp + 0x78]
push eax
call fcn.005149a6
add esp, 4
test ax, ax
jle 0x501c0b
mov edi, dword [esp]
mov dword [edi + 0x20], 0xa
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x24], ecx
sub eax, dword [edi + 0x1c]
xor ecx, ecx
inc ecx
test eax, eax
cmovg ecx, eax
mov dword [edi + 0x28], ecx
mov byte [esp + 0x50], 0
pxor xmm0, xmm0
movdqu xmmword [esp + 0x54], xmm0
mov dword [esp + 0x64], 0
jmp 0x501455
xor eax, eax
inc eax
mov edi, dword [esp]
jmp 0x5019db
mov byte [esp + 0x50], 0
pxor xmm0, xmm0
movdqu xmmword [esp + 0x54], xmm0
mov dword [esp + 0x64], 0
jmp 0x5017b7
push dword [esp + 0x28]
call fcn.00503da5
add esp, 4
jmp 0x5017b3
test byte [edi], 1
mov esi, 3
jne 0x501728
mov dword [edi + 0x20], 4
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x24], ecx
sub eax, dword [edi + 0x1c]
xor ecx, ecx
inc ecx
test eax, eax
cmovg ecx, eax
mov dword [edi + 0x28], ecx
mov esi, 3
jmp 0x50170d
movq xmm0, qword [esp + 0x38]
sub esp, 8
movq qword [esp], xmm0
lea esi, [esp + 0x80]
mov ecx, esi
call fcn.00459880
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x54]
push esi
call fcn.004e6a00
mov ecx, esi
call fcn.004e7f10
mov edi, dword [esp]
jmp 0x501455