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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1cc
mov eax, dword [0x52b2f8]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x44], esi
mov eax, dword [esi + 0x58]
cmp eax, 2
jl 0x4b44f8
cmp dword [esi + 4], 0
jne 0x4b4090
mov eax, 0xffffff76
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.004cdc57
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jl 0x4b44f8
mov edi, dword [ebp + 0xc]
jg 0x4b40a8
test edi, edi
jb 0x4b44f8
cmp ebx, dword [esi + 0x14]
jg 0x4b44f8
jl 0x4b40bc
cmp edi, dword [esi + 0x10]
ja 0x4b44f8
cmp eax, 3
jl 0x4b40e9
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x38]
cmp ebx, dword [ecx + eax*8 + 4]
jl 0x4b40e2
jg 0x4b40d4
cmp edi, dword [ecx + eax*8]
jb 0x4b40e2
cmp ebx, dword [ecx + eax*8 + 0xc]
jl 0x4b40e9
jg 0x4b40e2
cmp edi, dword [ecx + eax*8 + 8]
jb 0x4b40e9
mov ecx, esi
call fcn.004b36a0
mov edx, dword [esi + 0x5c]
lea ecx, [esi + 0x78]
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x54], 0xffffffff
test ecx, ecx
je 0x4b4111
cmp dword [ecx], 0
je 0x4b4111
call fcn.004c42c0
mov dword [ecx + 0x150], edx
lea ecx, [esi + 0x1e0]
call fcn.004b6130
push ebx
push edi
mov ecx, esi
call fcn.004b2740
add esp, 8
lea ecx, [esp + 0x68]
test eax, eax
je 0x4b4164
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x54], 0xffffffff
call fcn.004c3be0
mov ecx, esi
call fcn.004b36a0
mov eax, 0xffffff77
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.004cdc57
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x5c]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call fcn.004c3b30
lea ecx, [esp + 0x68]
call fcn.004c42c0
jmp 0x4b4194
mov ebx, dword [esp + 0x18]
cmp dword [esi + 0x58], 3
jl 0x4b4245
cmp dword [esp + 0x68], 0
je 0x4b4245
push 1
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x6c]
call fcn.004c4370
add esp, 4
test eax, eax
jle 0x4b4245
mov ecx, dword [esi + 0x60]
shl ecx, 5
add ecx, dword [esi + 0x48]
cmp dword [ecx + 0x1c], 0
je 0x4b4237
lea edx, [esp + 0x48]
call fcn.004b73d0
mov edi, eax
test edi, edi
jns 0x4b41ef
xor edx, edx
lea ecx, [esi + 0x78]
call fcn.004c4490
xor edi, edi
jmp 0x4b4217
cmp dword [esp + 0x10], 0
je 0x4b4209
cmp dword [esp + 0x14], 0
jne 0x4b4209
xor edx, edx
lea ecx, [esi + 0x78]
call fcn.004c4490
jmp 0x4b4217
test ebx, ebx
je 0x4b4217
lea eax, [edi + ebx]
sar eax, 2
add dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x58]
mov eax, ecx
mov ebx, dword [esp + 0x5c]
and eax, ebx
cmp eax, 0xffffffff
jne 0x4b4378
mov ebx, edi
mov dword [esp + 0x18], ebx
jmp 0x4b4194
lea ebx, [esi + 0x78]
xor edx, edx
mov ecx, ebx
call fcn.004c4490
jmp 0x4b4248
lea ebx, [esi + 0x78]
cmp dword [esp + 0x18], 0
jne 0x4b4499
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x38]
mov ecx, esi
call fcn.004b27d0
mov ecx, edx
mov dword [esp + 0x2c], eax
add esp, 8
mov dword [esp + 0x28], ecx
test ecx, ecx
jl 0x4b4487
jg 0x4b4281
test eax, eax
jb 0x4b4487
mov edi, dword [esi + 0x58]
cmp edi, 3
jl 0x4b42bd
lea ecx, [esp + 0x30]
call fcn.004c3b00
cmp dword [esi + 0x5c], eax
je 0x4b42b4
mov eax, dword [esp + 0x30]
test byte [eax + 5], 2
je 0x4b42b4
mov ecx, esi
call fcn.004b36a0
lea ecx, [esp + 0x68]
call fcn.004c3be0
mov edi, dword [esi + 0x58]
cmp edi, 3
jge 0x4b434c
lea ecx, [esp + 0x30]
call fcn.004c3b00
mov edi, eax
xor edx, edx
mov eax, dword [esi + 0x34]
test eax, eax
jle 0x4b42e0
mov ecx, dword [esi + 0x40]
cmp dword [ecx], edi
je 0x4b42e0
inc edx
add ecx, 4
cmp edx, eax
jl 0x4b42d4
cmp edx, eax
je 0x4b4190
mov dword [esi + 0x60], edx
mov dword [esi + 0x5c], edi
test ebx, ebx
je 0x4b4304
cmp dword [ebx], 0
je 0x4b4304
mov ecx, ebx
call fcn.004c42c0
mov dword [ebx + 0x150], edi
cmp dword [esp + 0x68], 0
je 0x4b431b
lea ecx, [esp + 0x68]
call fcn.004c42c0
mov dword [esp + 0x1b8], edi
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x58], 3
cmp ecx, dword [eax + edx*8 + 4]
jg 0x4b4344
jl 0x4b433a
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + edx*8]
ja 0x4b4344
mov dword [esp + 0x14], 1
jmp 0x4b434c
mov dword [esp + 0x14], 0
lea edx, [esp + 0x30]
mov ecx, ebx
call fcn.004c3fc0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x68]
call fcn.004c3fc0
mov eax, dword [esp + 0x30]
movzx edi, byte [eax + 5]
and edi, 4
mov dword [esp + 0x10], edi
jmp 0x4b4190
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x44]
mov dword [esp + 0x24], eax
shl eax, 4
sub ecx, dword [eax + edi]
sbb ebx, dword [eax + edi + 4]
mov dword [esp + 0x14], ebx
test ebx, ebx
jg 0x4b43af
jl 0x4b439a
test ecx, ecx
jae 0x4b43af
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ebx
xorps xmm0, xmm0
xor edx, edx
cmp dword [esi + 0x60], 2
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x18], xmm0
jl 0x4b441f
mov edx, dword [esp + 0x24]
lea eax, [edi + 0x18]
mov edi, dword [esp + 0x30]
add edx, 0xfffffffe
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
shr edx, 1
inc edx
mov dword [esp + 0x10], edx
add edx, edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x34]
nop dword [eax]
add edi, dword [eax - 0x10]
adc edx, dword [eax - 0xc]
add ebx, dword [eax]
adc esi, dword [eax + 4]
lea eax, [eax + 0x20]
sub dword [esp + 0x10], 1
jne 0x4b43f0
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x24]
jmp 0x4b443b
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
cmp edx, dword [esi + 0x60]
jge 0x4b444e
mov eax, dword [esi + 0x44]
shl edx, 4
add ecx, dword [edx + eax + 8]
adc ebx, dword [edx + eax + 0xc]
mov eax, dword [esp + 0x2c]
cdq
sub edi, eax
mov eax, dword [esp + 0x10]
sbb eax, edx
add edi, dword [esp + 0x18]
adc eax, dword [esp + 0x28]
add edi, ecx
mov dword [esi + 0x50], edi
adc eax, ebx
mov dword [esi + 0x54], eax
test eax, eax
jg 0x4b44a7
jl 0x4b4477
test edi, edi
jae 0x4b44a7
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
jmp 0x4b44a7
or edx, 0xffffffff
mov ecx, esi
call fcn.004b3fa0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
jmp 0x4b44a7
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x54], 0xffffffff
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4b44b8
push eax
call fcn.004df0c4
add esp, 4
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4b44c9
push eax
call fcn.004df0c4
add esp, 4
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4b44da
push eax
call fcn.004df0c4
add esp, 4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi + 0x68], xmm0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.004cdc57
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1d4]
mov eax, 0xffffff7d
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cdc57
mov esp, ebp
pop ebp
ret