Function at 0x4bb790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, esp
mov dword [esi + 0x98], ebp
mov edi, dword [ebp + 0x14]
lea ecx, [esi + 0xa0]
mov dword [ecx - 4], esp
xor eax, eax
dec eax
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0x43ef90
mov edx, dword fs:[0]
mov dword [ecx], edx
mov dword fs:[0], ecx
mov ecx, edi
sub ecx, dword [ebp + 0x10]
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
mov dword [esi + 0x90], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x80], xmm0
movdqa xmmword [esi + 0x70], xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
movdqa xmmword [esi + 0x40], xmm0
movdqa xmmword [esi + 0x30], xmm0
mov dword [esi + 0x10], 0
mov eax, ecx
mov dword [esi + 0xc], ecx
cmp ecx, 0x65
jb 0x4bb83b
push dword [esi + 0xc]
call fcn.004717a0
add esp, 4
mov ecx, eax
test eax, eax
jne 0x4bb840
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xa8], eax
call fcn.004cb690
lea ecx, [esi + 0x30]
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
cmp eax, edi
mov dword [esi + 0x1c], ecx
je 0x4bb87b
mov dword [esi + 0x10], 0
movzx edx, byte [eax + 0xb]
test dl, dl
jns 0x4bb85f
mov edx, dword [eax + 4]
test edx, edx
je 0x4bb870
mov byte [ecx], 1
add eax, 0xc
inc ecx
cmp eax, edi
jne 0x4bb854
jmp 0x4bb87b
mov byte [ecx], 2
dec dword [esi + 0xc]
inc dword [esi + 0x10]
jmp 0x4bb866
mov dword [esi + 0xa8], 0
xor ecx, ecx
mov dword [esi + 0x20], ecx
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xa8], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00466680
test al, al
jne 0x4bba49
cmp dword [esi + 0xc], 0
je 0x4bba49
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4bba15
movzx eax, byte [eax]
mov dword [esi + 0x14], eax
cmp byte [ebp + 0x20], 0
jne 0x4bb8ef
mov edi, dword [ebp + 0x18]
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 4]
mov dword [esi + 8], ecx
movsx edx, byte [esi + 0x14]
mov ecx, edi
push edx
call eax
mov dword [esi + 0x14], eax
mov ecx, dword [ebp + 0x14]
mov edi, dword [esi + 0x20]
lea ebx, [edi + 1]
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
cmp eax, ecx
je 0x4bb9a3
mov eax, dword [esi + 0x18]
cmp byte [eax], 1
jne 0x4bb995
mov eax, dword [esi + 0x28]
cmp byte [eax + 0xb], 0
jns 0x4bb929
mov eax, dword [eax]
mov al, byte [eax + edi]
cmp byte [ebp + 0x20], 0
jne 0x4bb95b
mov edi, dword [ebp + 0x18]
mov ecx, dword [edi]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esi + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xa8], 0
movsx eax, al
mov ecx, edi
push eax
call edx
mov ebx, dword [esi + 0x24]
mov ecx, dword [ebp + 0x14]
mov edi, dword [esi + 0x20]
cmp byte [esi + 0x14], al
jne 0x4bb98c
mov ecx, edi
mov edi, dword [esi + 0x28]
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4bb970
mov eax, dword [edi + 4]
mov dl, 1
mov dword [esi + 0x2c], edx
cmp eax, ebx
mov edi, ecx
jne 0x4bb987
mov eax, dword [esi + 0x18]
mov byte [eax], 2
dec dword [esi + 0xc]
inc dword [esi + 0x10]
mov ecx, dword [ebp + 0x14]
jmp 0x4bb995
mov eax, dword [esi + 0x18]
mov byte [eax], 0
dec dword [esi + 0xc]
mov eax, dword [esi + 0x28]
add eax, 0xc
inc dword [esi + 0x18]
jmp 0x4bb90b
mov ecx, ebx
test byte [esi + 0x2c], 1
je 0x4bb887
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4bba2a
inc eax
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
add eax, ecx
mov ecx, ebx
cmp eax, 2
mov edi, dword [ebp + 0x14]
jb 0x4bb887
mov ecx, ebx
cmp dword [ebp + 0x10], edi
je 0x4bb887
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x1c]
cmp byte [ecx], 2
jne 0x4bba06
movzx ebx, byte [eax + 0xb]
test bl, bl
jns 0x4bb9f7
mov ebx, dword [eax + 4]
mov edx, dword [esi + 0x24]
cmp ebx, edx
mov ebx, edx
je 0x4bba06
mov byte [ecx], 0
dec dword [esi + 0x10]
add eax, 0xc
inc ecx
cmp eax, edi
jne 0x4bb9e7
mov ecx, ebx
jmp 0x4bb887
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
mov edx, dword [esi + 4]
mov dword [esi + 8], edx
call eax
mov dword [esi + 0x14], eax
jmp 0x4bb8cf
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov edx, dword [esi + 4]
mov dword [esi + 8], edx
mov dword [esi + 0xa8], 0
call eax
mov ebx, dword [esi + 0x24]
jmp 0x4bb9c0
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00466680
test al, al
mov ebx, dword [ebp + 0x1c]
je 0x4bba65
or byte [ebx], 2
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
cmp eax, edi
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x1c]
je 0x4bba82
cmp byte [edx], 2
je 0x4bbaa8
add eax, 0xc
inc edx
cmp eax, edi
jne 0x4bba75
or byte [ebx], 4
test ecx, ecx
je 0x4bba92
push ecx
call fcn.004717f0
add esp, 4
mov eax, dword [esi + 0xa0]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, eax
jmp 0x4bba85