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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov ebx, ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0xb8], eax
mov ecx, dword [ecx + 0x10]
lea eax, [ecx + 1]
cmp eax, dword [ebx + 0xc]
ja 0x4ffdc9
mov edx, dword [ebx + 8]
mov dword [ebx + 0x10], eax
cmp byte [edx + ecx], 0x7b
jne 0x4ffdcb
lea edx, [ebx + 0x14]
mov ecx, edx
shr ecx, 0xe
xor eax, eax
inc eax
shl eax, cl
mov dword [esp + 0x20], eax
mov eax, edx
shr eax, 0x13
mov dword [esp + 0x1c], eax
mov eax, dword [eax*4 + 0x60a0d8]
bt eax, ecx
mov esi, dword [ebx + 4]
mov dword [esp + 0xc], edx
jb 0x4ffe12
mov eax, edx
shr eax, 0x15
mov byte [eax + 0x6120d8], 1
mov eax, dword [edx]
inc eax
mov dword [edx], eax
cmp eax, esi
jae 0x4ffe24
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov ecx, ebx
call fcn.004ff430
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 4
mov dword [esp + 8], eax
mov dword [esp + 0x10], ebx
cmp esi, 4
jne 0x4ffa78
lea eax, [esp + 0x7c]
pcmpeqd xmm0, xmm0
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], 0xffffffff
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov byte [esp + 0x7c], 0
mov ecx, ebx
lea eax, [esp + 0x74]
push eax
call fcn.00500a00
test al, al
je 0x4ffcb6
mov ecx, ebx
call fcn.004ff430
cmp eax, 0xa
jne 0x4ffcdc
mov eax, dword [ebx + 0x10]
inc eax
cmp eax, dword [ebx + 0xc]
ja 0x4ff646
mov dword [ebx + 0x10], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqa xmmword [esp + 0x50], xmm0
mov ecx, ebx
call fcn.004ff430
cmp eax, 8
ja case.0x4ff666.1
jmp dword [eax*4 + 0x5f7d7c]
mov ecx, ebx
lea eax, [esp + 0x50]
push eax
call fcn.005006c0
cmp byte [esp + 0x50], 0
je 0x4ffc8c
cmp byte [esp + 0x7c], 0
jne 0x4ffbfc
mov ebx, dword [esp + 0x78]
cmp ebx, 0xfffffff0
jae 0x4ffd5d
mov eax, dword [esp + 0x74]
cmp ebx, 0xb
jae 0x4ff6b9
mov byte [esp + 0x9b], bl
lea esi, [esp + 0x90]
test ebx, ebx
jne 0x4ff6ef
jmp 0x4ff6fa
lea edi, [ebx + 0x10]
and edi, 0xfffffff0
push edi
mov dword [esp + 8], eax
call fcn.0050397a
add esp, 4
mov esi, eax
mov eax, dword [esp + 4]
mov dword [esp + 0x90], esi
or edi, 0x80000000
mov dword [esp + 0x98], edi
xor edi, edi
mov dword [esp + 0x94], ebx
push ebx
push eax
push esi
call fcn.00506d50
add esp, 0xc
mov byte [esi + ebx], 0
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0x4ff97f
mov edx, dword [esp + 0x24]
mov edi, esi
sub edi, edx
sar edi, 5
lea ecx, [edi + 1]
cmp ecx, 0x8000000
jae 0x4ffdb2
sub eax, edx
mov ebx, eax
sar ebx, 4
cmp ebx, ecx
cmovbe ebx, ecx
cmp eax, 0x7fffffe0
mov eax, 0x7ffffff
cmovae ebx, eax
test ebx, ebx
mov dword [esp + 0x18], edx
je 0x4ffd79
cmp ebx, 0x8000000
jae 0x4ffdbb
mov eax, ebx
shl eax, 5
push eax
call fcn.0050397a
add esp, 4
shl edi, 5
mov ecx, dword [esp + 0x98]
mov dword [esp + 4], ecx
mov ecx, eax
lea edx, [eax + edi]
add edx, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 4]
mov dword [edx - 4], eax
lea eax, [ecx + edi]
mov dword [esp + 4], eax
movq xmm0, qword [esp + 0x90]
movq qword [edx - 0xc], xmm0
xor eax, eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x98], eax
shl ebx, 5
add ebx, ecx
mov ecx, edx
lea eax, [esp + 0x54]
push eax
call fcn.004e78f0
mov eax, dword [esp + 0x14]
lea ecx, [eax + edi]
add ecx, 0x20
cmp esi, dword [esp + 0x18]
je 0x4ff8d1
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 4]
lea edi, [esi - 0x20]
mov eax, dword [esi - 0x18]
mov dword [ecx - 0x18], eax
lea eax, [ecx - 0x20]
mov dword [esp + 4], eax
movq xmm0, qword [esi - 0x20]
movq qword [ecx - 0x20], xmm0
xor eax, eax
mov dword [esi - 0x1c], eax
mov dword [esi - 0x20], eax
mov dword [esi - 0x18], eax
add ecx, 0xffffffec
add esi, 0xffffffec
push esi
call fcn.004e78f0
mov esi, edi
cmp edi, dword [esp + 0x18]
jne 0x4ff7e1
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
cmp edi, esi
je 0x4ff859
lea ebx, [edi - 0x20]
lea ecx, [edi - 0x14]
call fcn.004e8e80
cmp byte [edi - 0x15], 0
js 0x4ffd69
mov edi, ebx
cmp ebx, esi
jne 0x4ff83e
test esi, esi
mov ebx, dword [esp + 0x10]
je 0x4ff86a
push esi
call fcn.005039aa
add esp, 4
cmp byte [esp + 0x9b], 0
js 0x4ffd17
mov ecx, ebx
call fcn.004ff430
xor edi, edi
cmp eax, 9
jne 0x4ff8f7
mov eax, dword [ebx + 0x10]
inc eax
cmp eax, dword [ebx + 0xc]
ja 0x4ff892
mov dword [ebx + 0x10], eax
mov ecx, ebx
call fcn.004ff430
cmp eax, 1
je 0x4ffd80
mov esi, eax
cmp byte [esp + 0x50], 0
je 0x4ff8b4
lea ecx, [esp + 0x54]
call fcn.004e8e80
cmp byte [esp + 0x7c], 0
jne 0x4ffd2b
test edi, edi
mov edi, 0
je 0x4ff5ed
jmp 0x4ffbb3
mov eax, dword [esp + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
jmp 0x4ff859
mov ecx, ebx
lea eax, [esp + 0x50]
push eax
call fcn.004fff50
jmp 0x4ff679
xor esi, esi
inc esi
cmp eax, 1
je 0x4ff8a4
jmp 0x4ffe66
lea eax, [esp + 0x98]
pcmpeqd xmm0, xmm0
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], 0xffffffff
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov byte [esp + 0x98], 0
mov ecx, ebx
lea eax, [esp + 0x90]
push eax
call fcn.00500a00
test al, al
je 0x4fff0d
cmp byte [esp + 0x98], 0
jne 0x4ffc27
mov ebx, dword [esp + 0x94]
cmp ebx, 0xfffffff0
jae 0x4ffdc0
mov eax, dword [esp + 0x90]
cmp ebx, 0xb
jae 0x4ff9c4
mov byte [esp + 0x3b], bl
lea esi, [esp + 0x30]
test ebx, ebx
jne 0x4ff9f1
jmp 0x4ff9fc
mov eax, dword [esp + 0x98]
mov dword [esi + 8], eax
movq xmm0, qword [esp + 0x90]
movq qword [esi], xmm0
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x98], edi
lea ecx, [esi + 0xc]
lea eax, [esp + 0x54]
push eax
call fcn.004e78f0
add esi, 0x20
mov dword [esp + 0x28], esi
jmp 0x4ff86a
lea edi, [ebx + 0x10]
and edi, 0xfffffff0
push edi
mov dword [esp + 8], eax
call fcn.0050397a
add esp, 4
mov esi, eax
mov eax, dword [esp + 4]
mov dword [esp + 0x30], esi
or edi, 0x80000000
mov dword [esp + 0x38], edi
xor edi, edi
mov dword [esp + 0x34], ebx
push ebx
push eax
push esi
call fcn.00506d50
add esp, 0xc
mov byte [esi + ebx], 0
lea esi, [esp + 0x3c]
mov ecx, esi
lea eax, [esp + 0x30]
push eax
call fcn.004e7c20
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x54]
push esi
call fcn.004e78f0
mov ecx, esi
call fcn.004e8e80
cmp byte [esp + 0x3b], 0
js 0x4fff2a
mov ebx, dword [esp + 0x10]
cmp byte [esp + 0x98], 0
je 0x4ff679
cmp byte [esp + 0xa7], 0
jns 0x4ff679
jmp 0x4fff3b
mov ecx, ebx
lea eax, [esp + 0x50]
push eax
call fcn.004afa00
jmp 0x4ff679
mov ecx, ebx
lea eax, [esp + 0x50]
push eax
call fcn.004ff540
jmp 0x4ff679
cmp esi, 1
jne 0x4ffe88
mov eax, dword [ebx + 0x10]
inc eax
cmp eax, dword [ebx + 0xc]
ja 0x4ffa8d
mov dword [ebx + 0x10], eax
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp esi, eax
je 0x4ffc4e
lea edi, [eax - 0x20]
cmp esi, edi
jae 0x4ffb23
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov ebx, dword [edi + 8]
mov dword [esi + 8], ebx
movq xmm0, qword [edi]
movq qword [esi], xmm0
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
mov dword [esp + 0xa0], 0xffffffff
lea edx, [esi + 0xc]
mov dword [esp + 4], edx
lea ecx, [esp + 0x90]
push edx
call fcn.004e78f0
lea ebx, [edi + 0xc]
mov ecx, dword [esp + 4]
push ebx
call fcn.004e79b0
mov ecx, ebx
lea ebx, [esp + 0x90]
push ebx
call fcn.004e79b0
mov ecx, ebx
call fcn.004e8e80
add esi, 0x20
add edi, 0xffffffe0
cmp esi, edi
jb 0x4ffaa4
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x80], ecx
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x74]
mov ecx, edi
push eax
push esi
call fcn.005a0260
lea esi, [esp + 0x90]
mov ecx, esi
push edi
call fcn.004e7c50
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov ecx, dword [esp + 8]
push esi
call fcn.004e78f0
mov ecx, esi
call fcn.004e8e80
mov esi, dword [esp + 0x78]
test esi, esi
je 0x4ffbb3
mov edi, dword [esp + 0x7c]
cmp edi, esi
je 0x4ffbf8
lea ebx, [edi - 0x20]
lea ecx, [edi - 0x14]
call fcn.004e8e80
cmp byte [edi - 0x15], 0
js 0x4ffd4d
mov edi, ebx
cmp ebx, esi
jne 0x4ffb87
mov eax, dword [esp + 0x78]
mov dword [esp + 0x7c], esi
push eax
call fcn.005039aa
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
mov ecx, dword [esp + 0xc]
jne 0x4ffec3
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
test dword [edx*4 + 0x60a0d8], eax
jne 0x4ffeff
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.00504b53
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, esi
jmp 0x4ffba6
lea ecx, [esp + 0x80]
mov eax, dword [ecx + 8]
mov dword [esp + 0x98], eax
movq xmm0, qword [ecx]
movq qword [esp + 0x90], xmm0
mov dword [ecx + 4], edi
mov dword [ecx], edi
mov dword [ecx + 8], edi
jmp 0x4ff702
lea ecx, [esp + 0x9c]
mov eax, dword [ecx + 8]
mov dword [esp + 0x38], eax
movq xmm0, qword [ecx]
movq qword [esp + 0x30], xmm0
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
jmp 0x4ffa00
mov esi, eax
jmp 0x4ffb23
mov dword [ebx + 0x20], 3
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x24], ecx
sub eax, dword [ebx + 0x1c]
xor ecx, ecx
inc ecx
cmp eax, 2
cmovge ecx, eax
mov dword [ebx + 0x28], ecx
mov byte [esp + 0x50], 0
pxor xmm0, xmm0
lea eax, [esp + 0x54]
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov esi, 0xa
mov eax, dword [ebp + 8]
mov byte [eax], 0
pxor xmm0, xmm0
mov eax, dword [esp + 8]
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], 0
xor edi, edi
inc edi
mov ebx, dword [esp + 0x10]
jmp 0x4ff8a4
mov eax, dword [ebp + 8]
mov byte [eax], 0
pxor xmm0, xmm0
mov eax, dword [esp + 8]
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov esi, 4
xor edi, edi
inc edi
jmp 0x4ff8b4
mov esi, eax
xor edi, edi
inc edi
mov dword [ebx + 0x20], edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x24], ecx
sub eax, dword [ebx + 0x1c]
cmp eax, 2
cmovl eax, edi
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 8]
mov byte [eax], 0
pxor xmm0, xmm0
mov eax, dword [esp + 8]
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], 0
jmp 0x4ff8b4
push dword [esp + 0x90]
call fcn.005039aa
add esp, 4
jmp 0x4ff878
cmp byte [esp + 0x8b], 0
jns 0x4ff8bf
push dword [esp + 0x80]
call fcn.005039aa
add esp, 4
jmp 0x4ff8bf
push dword [edi - 0x20]
call fcn.005039aa
add esp, 4
jmp 0x4ffb9c
lea ecx, [esp + 0x90]
call fcn.0055adb0
push dword [edi - 0x20]
call fcn.005039aa
add esp, 4
jmp 0x4ff853
xor eax, eax
jmp 0x4ff76b
test byte [ebx], 1
mov esi, 1
jne 0x4ff8a4
mov dword [ebx + 0x20], 4
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x24], ecx
sub eax, dword [ebx + 0x1c]
xor esi, esi
inc esi
cmp eax, 2
cmovl eax, esi
mov dword [ebx + 0x28], eax
jmp 0x4ffc91
lea ecx, [esp + 0x24]
call fcn.00536260
call fcn.00518ff0
lea ecx, [esp + 0x30]
call fcn.0055adb0
mov eax, ecx
mov dword [ebx + 0x20], 3
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x24], ecx
sub eax, dword [ebx + 0x1c]
xor ecx, ecx
inc ecx
cmp eax, 2
cmovge ecx, eax
mov dword [ebx + 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 + 0xb8]
xor ecx, ebp
call fcn.00504b53
mov eax, esi
jmp 0x4ffbee
push edx
call fcn.004e1ce0
mov edx, dword [esp + 0x10]
add esp, 4
jmp 0x4ff5bb
mov dword [ebx + 0x20], 5
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
mov dword [ebx + 0x24], ecx
not edx
add edx, dword [ebx + 0x10]
cmp edx, 2
mov ecx, 1
cmovge ecx, edx
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
pxor xmm0, xmm0
movdqu xmmword [ecx + 4], xmm0
mov dword [ecx + 0x14], 0
mov ecx, dword [esp + 0xc]
jmp 0x4ffbc5
xor ecx, ecx
inc ecx
mov dword [ebx + 0x20], ecx
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x18]
mov dword [ebx + 0x24], esi
sub edx, dword [ebx + 0x1c]
cmp edx, 2
cmovl edx, ecx
mov dword [ebx + 0x28], edx
mov esi, eax
jmp 0x4ffc91
mov dword [ebx + 0x20], 8
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x24], ecx
sub eax, dword [ebx + 0x1c]
xor ecx, ecx
inc ecx
cmp eax, 2
cmovge ecx, eax
mov dword [ebx + 0x28], ecx
mov eax, dword [ebp + 8]
mov byte [eax], 0
xorps xmm0, xmm0
mov eax, dword [esp + 8]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
jmp 0x4ffbb3
mov edi, dword [esp + 0x28]
cmp edi, esi
je 0x4ffeed
lea ebx, [edi - 0x20]
lea ecx, [edi - 0x14]
call fcn.004e8e80
cmp byte [edi - 0x15], 0
jns 0x4ffee7
push dword [edi - 0x20]
call fcn.005039aa
add esp, 4
mov edi, ebx
cmp ebx, esi
jne 0x4ffecb
push esi
call fcn.005039aa
add esp, 4
mov ecx, dword [esp + 0xc]
jmp 0x4ffbc3
push ecx
call fcn.004e1df0
add esp, 4
jmp 0x4ffbdd
mov byte [esp + 0x50], 0
pxor xmm0, xmm0
lea eax, [esp + 0x54]
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], 0
jmp 0x4ffa35
push dword [esp + 0x30]
call fcn.005039aa
add esp, 4
jmp 0x4ffa31
push dword [esp + 0x9c]
call fcn.005039aa
add esp, 4
jmp 0x4ff679