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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov ebx, edx
mov edi, ecx
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [esp + 0x78], eax
mov eax, edx
sub eax, ecx
sar eax, 4
imul eax, eax, 0xcccccccd
cmp eax, 5
ja case.default.0x496992
mov dl, 1
jmp dword [eax*4 + 0x593d30]
mov eax, dword [edi + 0x28]
cmp eax, dword [ebx - 0x28]
mov eax, dword [edi + 0x2c]
sbb eax, dword [ebx - 0x24]
jge case.0x496992.0
add ebx, 0xffffffb0
push ebx
push edi
call fcn.0044ee80
mov dl, 1
add esp, 8
and dl, 1
mov ecx, dword [esp + 0x78]
xor ecx, ebp
mov ebx, edx
call fcn.004d25a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [edi + 0xa0]
lea edx, [edi + 0x50]
mov ecx, edi
mov dword [esp + 4], eax
push eax
call fcn.0055d860
add esp, 4
lea ecx, [edi + 0xf0]
cmp ecx, ebx
je 0x496cae
mov dword [esp + 0x18], 0xa0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov esi, dword [esp + 4]
mov dword [esp + 0x1c], ebx
mov eax, esi
mov esi, dword [esi + 0x28]
cmp esi, dword [ecx + 0x28]
mov eax, dword [eax + 0x2c]
mov esi, ecx
sbb eax, dword [ecx + 0x2c]
jge 0x496c22
lea eax, [esi + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
lea ebx, [eax + eax*4]
shl ebx, 4
lea eax, [esp + 0x30]
pcmpeqd xmm0, xmm0
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
mov ecx, eax
movups xmm0, xmmword [esi]
movaps xmmword [esp + 0x20], xmm0
lea eax, [esi + 0x10]
push eax
call fcn.00434de0
movsd xmm0, qword [esi + 0x1c]
lea eax, [esp + 0x3c]
mov ecx, eax
movsd qword [eax], xmm0
mov dword [esp + 4], esi
mov eax, dword [esi + 0x24]
mov dword [ecx + 8], eax
xor eax, eax
mov dword [ebx + edi + 0x110], eax
mov dword [ebx + edi + 0x10c], eax
mov dword [ebx + edi + 0x114], eax
mov eax, dword [esp + 8]
movsd xmm0, qword [eax + 0x20]
lea ecx, [esp + 0x30]
movsd qword [ecx + 0x38], xmm0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [ecx + 0x28], xmm1
movups xmmword [ecx + 0x18], xmm0
mov eax, dword [esp + 0x18]
mov ebx, eax
lea ecx, [edi + eax]
add ecx, 0x60
movups xmm0, xmmword [ecx - 0x60]
movups xmmword [ecx - 0x10], xmm0
lea esi, [edi + eax]
add esi, 0x10
push esi
call fcn.00411710
cmp byte [esi + 0x67], 0
mov dword [esp + 8], esi
js 0x496af2
xor ecx, ecx
mov byte [edi + ebx + 0x6c], cl
mov byte [edi + ebx + 0x77], cl
jmp 0x496b23
mov eax, dword [edi + ebx + 0x6c]
mov byte [eax], 0
mov dword [edi + ebx + 0x70], 0
cmp byte [edi + ebx + 0x77], 0
mov ecx, 0
jns 0x496b23
push dword [edi + ebx + 0x6c]
call fcn.004cf0d6
xor ecx, ecx
add esp, 4
mov dword [edi + ebx + 0x74], 0
lea esi, [edi + ebx]
add esi, 0x1c
mov eax, dword [esi + 8]
mov dword [esi + 0x58], eax
movsd xmm0, qword [esi]
movsd qword [esi + 0x50], xmm0
mov dword [esi + 4], ecx
mov dword [esi], ecx
mov dword [esi + 8], ecx
movsd xmm0, qword [esi + 0x2c]
movsd qword [esi + 0x7c], xmm0
movups xmm0, xmmword [esi + 0xc]
movups xmm1, xmmword [esi + 0x1c]
movups xmmword [esi + 0x6c], xmm1
movups xmmword [esi + 0x5c], xmm0
test ebx, ebx
je 0x496b7e
mov eax, dword [edi + ebx - 0x28]
mov ecx, dword [edi + ebx - 0x24]
cmp eax, dword [esp + 0x48]
lea eax, [ebx - 0x50]
sbb ecx, dword [esp + 0x4c]
jl 0x496ac0
add eax, edi
add eax, 0x50
jmp 0x496b80
mov eax, edi
movaps xmm0, xmmword [esp + 0x20]
mov dword [esp + 0xc], eax
movups xmmword [eax], xmm0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x30]
push eax
call fcn.00411710
cmp byte [edi + ebx + 0x27], 0
js 0x496bab
mov byte [esi], 0
mov byte [edi + ebx + 0x27], 0
jmp 0x496bc4
mov eax, dword [edi + ebx + 0x1c]
mov byte [eax], 0
mov eax, dword [esp + 0xc]
mov dword [eax + 0x20], 0
cmp byte [edi + ebx + 0x27], 0
js 0x496c38
lea ecx, [esp + 0x3c]
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [ecx]
movsd qword [esi], xmm0
lea eax, [edi + ebx]
add eax, 0x28
xor edx, edx
mov dword [ecx + 4], edx
mov dword [ecx], edx
mov dword [ecx + 8], edx
lea ecx, [esp + 0x30]
movsd xmm0, qword [ecx + 0x38]
movsd qword [eax + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x18]
movups xmm1, xmmword [ecx + 0x28]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
mov esi, dword [esp + 0x10]
inc esi
call fcn.004c5e70
mov dword [esp + 0x10], esi
cmp esi, 8
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 4]
je 0x496cb2
lea ecx, [esi + 0x50]
inc dword [esp + 0x14]
add dword [esp + 0x18], 0x50
cmp ecx, ebx
jne 0x496a16
jmp 0x496cae
push dword [edi + ebx + 0x1c]
call fcn.004cf0d6
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [eax + 0x24], 0x80000000
jmp 0x496ba4
add ebx, 0xffffffb0
lea eax, [edi + 0xa0]
lea edx, [edi + 0x50]
mov ecx, edi
push ebx
push eax
call fcn.0055d900
jmp 0x4969b1
add ebx, 0xffffffb0
lea edx, [edi + 0x50]
mov ecx, edi
push ebx
call fcn.0055d860
mov dl, 1
add esp, 4
jmp case.0x496992.0
add ebx, 0xffffffb0
lea eax, [edi + 0xf0]
mov esi, ebx
lea ebx, [edi + 0xa0]
lea edx, [edi + 0x50]
mov ecx, edi
push esi
push eax
push ebx
call fcn.0055d990
mov dl, 1
add esp, 0xc
jmp case.0x496992.0
mov dl, 1
jmp 0x496cbc
add esi, 0x50
cmp esi, ebx
sete al
xor edx, edx
or dl, al
jmp case.0x496992.0