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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov dword [esp + 0x2c], ecx
xor eax, eax
mov ecx, 0xe
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x14], 0xfffffffd
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
je 0x4bb9ec
mov al, byte [esi + 0x38]
mov cl, al
shr cl, 2
mov bl, al
and cl, 1
and bl, 1
test al, 0x18
mov byte [esp + 0x30], al
mov eax, dword [esp + 0x7c]
setne byte [esp + 0x13]
cmp eax, ebp
mov byte [esp + 0x12], cl
jbe 0x4bb77c
test bl, bl
push 0x38
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
push 0x540a48
je 0x4bb753
push 0xfffffffffffffff1
lea ecx, [esp + 0x40]
push ecx
jmp 0x4bb75a
push 0xf
lea edx, [esp + 0x40]
push edx
call fcn.004c5690
add esp, 0x10
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x4bb780
mov eax, dword [esp + 0x74]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
xor al, al
pop ebx
add esp, 0x5c
ret 0x14
mov dword [esp + 0x14], ebp
test bl, bl
je 0x4bb84e
cmp dword [esp + 0x7c], ebp
jbe 0x4bb84e
test byte [esi + 0x38], 0x18
mov eax, dword [esp + 0x20]
mov ebp, edi
mov ebx, eax
je 0x4bb7b2
mov ebp, dword [esi + 0x18]
test ebp, ebp
mov ebx, dword [esi + 0x1c]
jne 0x4bb7b2
test eax, eax
jbe 0x4bb815
mov ebp, edi
mov ebx, eax
test ebx, ebx
je 0x4bb815
mov edi, dword [esp + 0x70]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x26], al
not al
mov cl, bl
not cl
lea edx, [esp + 0x24]
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x74]
mov dword [esp + 0x34], edx
mov byte [esp + 0x27], cl
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push 0
push edx
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], bl
mov dword [esp + 0x40], 5
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ecx
call fcn.004c58a0
add esp, 8
test eax, eax
je 0x4bb821
mov eax, dword [esp + 0x74]
mov dword [eax], 0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x5c
ret 0x14
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
lea eax, [esp + 0x34]
push 2
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edx
call fcn.004c58a0
add esp, 8
mov dword [esp + 0x14], eax
xor ebp, ebp
jmp 0x4bb852
mov edi, dword [esp + 0x70]
cmp dword [esp + 0x14], ebp
jne 0x4bb9ec
mov al, byte [esp + 0x12]
mov ecx, dword [esp + 0x48]
xor ebx, ebx
test al, al
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edi
je 0x4bb915
mov eax, dword [esi + 0x28]
movzx edx, byte [esi + 0x3a]
movzx ebx, byte [esi + 0x39]
lea eax, [eax + eax*2]
imul edx, eax
imul ebx, eax
test edx, edx
jne 0x4bb8b6
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x74]
mov eax, edx
mov dword [ecx], eax
mov dword [esp + 0x14], 0
jmp 0x4bb915
test ebx, ebx
jle 0x4bb8e9
mov esi, dword [esp + 0x18]
mov ecx, ebx
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x80]
add ecx, ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x70]
add ecx, ebx
mov dword [esp + 0x1c], ecx
mov ebp, dword [esi + 0x24]
imul ebp, eax
sub ebp, edx
sub ebp, ebx
test ebp, ebp
jle 0x4bb915
mov eax, dword [esp + 0x18]
lea esi, [edx + eax]
mov eax, dword [esp + 0x1c]
mov ecx, ebp
lea edi, [edx + eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x7c]
test eax, eax
jbe 0x4bb9ea
mov edx, dword [esp + 0x74]
mov esi, dword [edx]
mov ecx, dword [esp + 0x78]
sub esi, ebp
mov dword [esp + 0x38], eax
mov al, byte [esp + 0x13]
sub esi, ebx
test al, al
mov dword [esp + 0x34], ecx
mov dword [esp + 0x70], esi
je 0x4bb98b
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x34]
push 4
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call fcn.004c58a0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esi + 0xc]
add esp, 8
push eax
sub ecx, ebp
push ecx
mov ecx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x7c]
push eax
push ecx
mov ecx, esi
call fcn.004bb530
jmp 0x4bb9d9
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push 2
push eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
call fcn.004c58a0
add esp, 8
test eax, eax
je 0x4bb9c5
cmp eax, 1
je 0x4bb9c5
mov edi, dword [esp + 0x1c]
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
sub ebp, edx
add ebp, ebx
add ebp, eax
mov eax, dword [esp + 0x74]
mov dword [eax], ebp
lea ecx, [esp + 0x34]
push ecx
call fcn.004c6ee0
add esp, 4
mov dword [esp + 0x14], eax
xor ebp, ebp
mov ecx, dword [esp + 0x14]
pop edi
xor eax, eax
pop esi
cmp ecx, ebp
pop ebp
sete al
pop ebx
add esp, 0x5c
ret 0x14