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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov esi, dword [esp + 0x70]
test esi, esi
je 0x4b18d9
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
cmp ebx, edi
jle 0x4b188f
cmp esi, edi
jle 0x4b188f
test ebx, ebx
je 0x4b18d9
lea eax, [esp + 0x5c]
mov edi, dword [eax]
lea eax, [esp + 0x60]
mov eax, dword [eax]
mov dword [esp + 4], eax
nop word [eax + eax]
mov ecx, ebp
push dword [edi]
mov eax, dword [esp + 8]
push dword [eax]
call fcn.004b0cd0
test al, al
jne 0x4b1390
add edi, 4
dec ebx
jne 0x4b1370
jmp 0x4b18d9
lea eax, [esp + 0x5c]
mov dword [eax], edi
cmp ebx, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], ebx
jge 0x4b1410
mov ecx, esi
shr ecx, 0x1f
add ecx, esi
sar ecx, 1
mov ebp, dword [esp + 4]
lea eax, [ecx*4]
add eax, ebp
cmp edi, ebp
mov dword [esp + 0x10], ecx
je 0x4b1487
sub ebp, edi
sar ebp, 2
mov ebx, edi
mov dword [esp + 0x14], eax
nop
mov esi, ebp
shr esi, 1
mov ecx, dword [esp + 0x68]
push dword [ebx + esi*4]
push dword [eax]
call fcn.004b0cd0
lea ecx, [ebx + esi*4]
add ecx, 4
mov edx, esi
not edx
add edx, ebp
test al, al
mov eax, dword [esp + 0x14]
cmove ebx, ecx
cmovne edx, esi
mov ebp, edx
test edx, edx
jne 0x4b13d0
jmp 0x4b1489
cmp ebx, 1
je 0x4b18cd
mov eax, ebx
shr eax, 0x1f
add eax, ebx
sar eax, 1
mov dword [esp + 8], eax
lea ebx, [edi + eax*4]
lea eax, [esp + 0x64]
mov edi, dword [eax]
mov ecx, dword [esp + 4]
mov eax, ecx
sub edi, ecx
je 0x4b1476
sar edi, 2
mov eax, dword [esp + 4]
mov esi, edi
shr esi, 1
mov ecx, ebp
push dword [ebx]
push dword [eax + esi*4]
mov ebp, ebx
mov ebx, eax
call fcn.004b0cd0
lea ecx, [ebx + esi*4]
add ecx, 4
mov edx, esi
not edx
add edx, edi
test al, al
mov eax, ebx
mov ebx, ebp
mov ebp, dword [esp + 0x68]
cmovne eax, ecx
cmove edx, esi
mov edi, edx
test edx, edx
jne 0x4b1440
mov edx, eax
mov edi, dword [esp + 4]
sub edx, edi
sar edx, 2
mov ecx, dword [esp + 8]
jmp 0x4b149c
mov ebx, ebp
mov ecx, ebx
sub ecx, edi
sar ecx, 2
mov ebp, dword [esp + 0x68]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 4]
sub dword [esp + 0x1c], ecx
mov esi, dword [esp + 0xc]
sub esi, edx
mov dword [esp], eax
cmp ebx, edi
mov dword [esp + 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x10], edx
je 0x4b17d0
mov dword [esp], ebx
sub eax, edi
je 0x4b17d0
mov dword [esp + 0x18], eax
lea eax, [ebx + 4]
cmp eax, edi
mov dword [esp + 0xc], esi
je 0x4b1737
lea eax, [edi + 4]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x4b176b
mov ecx, edi
sub ecx, ebx
mov dword [esp], ecx
sar ecx, 2
mov edi, dword [esp + 0x18]
sar edi, 2
mov edx, edi
mov esi, ecx
mov eax, edi
mov dword [esp + 0x18], edi
cmp ecx, edi
jne 0x4b1600
mov edi, dword [esp]
add edi, 0xfffffffc
mov eax, ebx
mov esi, dword [esp + 4]
mov ecx, esi
cmp edi, 0x3c
jb 0x4b179a
mov eax, edi
and eax, 0xfffffffc
lea ecx, [esi + eax]
add ecx, 4
cmp ebx, ecx
jae 0x4b1545
lea edx, [ebx + eax]
add edx, 4
mov eax, ebx
mov ecx, esi
cmp esi, edx
jb 0x4b179a
shr edi, 2
lea eax, [edi + 1]
add edi, 0xfffffff9
mov edx, edi
shr edx, 3
inc edx
xor ecx, ecx
cmp edi, 8
jb 0x4b15b6
mov edi, edx
and edi, 0xfffffffe
xor ecx, ecx
movups xmm0, xmmword [ebx + ecx*4]
movups xmm1, xmmword [ebx + ecx*4 + 0x10]
movups xmm2, xmmword [esi + ecx*4]
movups xmm3, xmmword [esi + ecx*4 + 0x10]
movups xmmword [ebx + ecx*4], xmm2
movups xmmword [ebx + ecx*4 + 0x10], xmm3
movups xmmword [esi + ecx*4], xmm0
movups xmmword [esi + ecx*4 + 0x10], xmm1
movups xmm0, xmmword [ebx + ecx*4 + 0x20]
movups xmm1, xmmword [ebx + ecx*4 + 0x30]
movups xmm2, xmmword [esi + ecx*4 + 0x20]
movups xmm3, xmmword [esi + ecx*4 + 0x30]
movups xmmword [ebx + ecx*4 + 0x20], xmm2
movups xmmword [ebx + ecx*4 + 0x30], xmm3
movups xmmword [esi + ecx*4 + 0x20], xmm0
movups xmmword [esi + ecx*4 + 0x30], xmm1
add ecx, 0x10
add edi, 0xfffffffe
jne 0x4b1562
mov edi, esi
mov esi, eax
and esi, 0xfffffff8
test dl, 1
mov edx, edi
je 0x4b15e8
movups xmm0, xmmword [ebx + ecx*4]
movups xmm1, xmmword [ebx + ecx*4 + 0x10]
movups xmm2, xmmword [edx + ecx*4]
movups xmm3, xmmword [edx + ecx*4 + 0x10]
movups xmmword [ebx + ecx*4], xmm2
movups xmmword [ebx + ecx*4 + 0x10], xmm3
movups xmmword [edx + ecx*4], xmm0
movups xmmword [edx + ecx*4 + 0x10], xmm1
cmp eax, esi
jne 0x4b1792
mov dword [esp], edx
jmp 0x4b17b5
mov edi, edx
mov eax, esi
cdq
mov esi, edi
idiv edi
test edx, edx
jne 0x4b1600
test esi, esi
je 0x4b1718
mov edx, esi
lea esi, [ebx + esi*4]
lea eax, [edx + 0x3fffffff]
test dl, 1
je 0x4b166e
mov dword [esp + 4], eax
lea edx, [esi - 4]
mov eax, dword [esi - 4]
mov dword [esp], eax
lea ebp, [esi + ecx*4]
add ebp, 0xfffffffc
mov esi, edx
mov eax, ebx
mov ebx, dword [esp + 0x14]
mov edi, ebp
mov ebp, dword [ebp]
mov dword [esi], ebp
mov esi, ebx
sub esi, edi
sar esi, 2
mov ebp, ecx
sub ebp, esi
lea esi, [edi + ecx*4]
lea ebp, [eax + ebp*4]
cmovl ebp, esi
mov esi, edi
cmp ebp, edx
jne 0x4b1640
mov esi, dword [esp]
mov dword [edi], esi
mov ebx, eax
mov esi, edx
mov eax, dword [esp + 4]
test eax, 0x3fffffff
je 0x4b1718
nop dword [eax]
lea eax, [esi - 4]
mov edx, dword [esi - 4]
mov dword [esp], edx
mov dword [esp + 4], esi
lea ebp, [esi + ecx*4]
add ebp, 0xfffffffc
mov esi, eax
mov edx, ebx
mov ebx, dword [esp + 0x14]
nop dword [eax + eax]
mov edi, ebp
mov ebp, dword [ebp]
mov dword [esi], ebp
mov esi, ebx
sub esi, edi
sar esi, 2
mov ebp, ecx
sub ebp, esi
lea esi, [edi + ecx*4]
lea ebp, [edx + ebp*4]
cmovl ebp, esi
mov esi, edi
cmp ebp, eax
jne 0x4b16a0
mov eax, dword [esp]
mov dword [edi], eax
mov eax, dword [esp + 4]
lea ebp, [eax - 8]
mov esi, dword [eax - 8]
mov dword [esp], esi
lea edi, [eax + ecx*4]
add edi, 0xfffffff8
mov dword [esp + 4], ebp
nop dword [eax]
mov eax, edi
mov edi, dword [edi]
mov dword [ebp], edi
mov edi, ebx
sub edi, eax
sar edi, 2
mov ebp, ecx
sub ebp, edi
lea esi, [eax + ecx*4]
lea edi, [edx + ebp*4]
cmovl edi, esi
mov ebp, eax
cmp edi, dword [esp + 4]
jne 0x4b16e0
mov esi, dword [esp]
mov dword [eax], esi
mov eax, dword [esp + 4]
mov esi, eax
cmp eax, edx
mov ebx, edx
jne 0x4b1680
mov eax, dword [esp + 0x18]
lea eax, [ebx + eax*4]
mov dword [esp], eax
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
jmp 0x4b17d0
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x18]
push esi
push edi
push ebx
mov ebp, edx
mov edi, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov ecx, edi
mov edx, ebp
mov ebp, dword [esp + 0x74]
add esp, 0xc
lea eax, [ebx + esi]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + esi], eax
mov esi, dword [esp + 0xc]
jmp 0x4b17d0
mov eax, ecx
mov esi, dword [edi]
sub edi, ebx
sub eax, edi
push edi
push ebx
mov dword [esp + 8], eax
push eax
mov edi, ebp
mov ebp, edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov edx, ebp
mov ebp, edi
add esp, 0xc
mov dword [ebx], esi
mov esi, dword [esp + 0xc]
jmp 0x4b17bd
lea eax, [ebx + esi*4]
lea ecx, [edx + esi*4]
mov esi, edx
mov edi, esi
nop dword [eax]
mov edx, dword [eax]
mov esi, dword [ecx]
mov dword [eax], esi
mov dword [ecx], edx
add eax, 4
add ecx, 4
cmp eax, edi
jne 0x4b17a0
mov dword [esp], edi
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
nop word cs:[eax + eax]
mov edi, dword [esp]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x1c]
add ecx, esi
cmp eax, ecx
jge 0x4b1830
lea eax, [esp + 0x5c]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x78]
push edi
push dword [esp + 0x78]
push dword [esp + 0x18]
push dword [esp + 0x14]
push ebp
push ecx
push edx
push eax
call fcn.004b1320
add esp, 0x20
lea eax, [esp + 0x5c]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
jmp 0x4b187a
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
lea edi, [esp + 0x64]
mov eax, dword [edi]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x78]
push edi
push dword [esp + 0x78]
push esi
push dword [esp + 0x28]
push ebp
push ecx
push edx
push eax
call fcn.004b1320
add esp, 0x20
lea eax, [esp + 0x64]
mov ecx, ebx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 8]
mov edx, dword [esp]
mov dword [eax], edx
lea eax, [esp + 0x60]
mov dword [eax], ecx
test esi, esi
jne 0x4b133f
jmp 0x4b18d9
lea eax, [esp + 0x5c]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x60]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x64]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push dword [esp + 0x74]
push esi
push ebx
push ebp
push eax
push ecx
push edx
call fcn.004b18f0
add esp, 0x64
jmp 0x4b18dc
mov eax, dword [edi]
mov edx, dword [esp + 4]
mov ecx, dword [edx]
mov dword [edi], ecx
mov dword [edx], eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret