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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [esi + 0xc]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], 0xfffffffd
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
je 0x4b8d1f
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 0x4b8aaf
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 0x53d9f0
je 0x4b8a86
push 0xfffffffffffffff1
lea ecx, [esp + 0x40]
push ecx
jmp 0x4b8a8d
push 0xf
lea edx, [esp + 0x40]
push edx
call fcn.004c2880
add esp, 0x10
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x4b8ab3
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 0x4b8b81
cmp dword [esp + 0x7c], ebp
jbe 0x4b8b81
test byte [esi + 0x38], 0x18
mov eax, dword [esp + 0x20]
mov ebp, edi
mov ebx, eax
je 0x4b8ae5
mov ebp, dword [esi + 0x18]
test ebp, ebp
mov ebx, dword [esi + 0x1c]
jne 0x4b8ae5
test eax, eax
jbe 0x4b8b48
mov ebp, edi
mov ebx, eax
test ebx, ebx
je 0x4b8b48
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.004c2a90
add esp, 8
test eax, eax
je 0x4b8b54
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.004c2a90
add esp, 8
mov dword [esp + 0x14], eax
xor ebp, ebp
jmp 0x4b8b85
mov edi, dword [esp + 0x70]
cmp dword [esp + 0x14], ebp
jne 0x4b8d1f
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 0x4b8c48
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 0x4b8be9
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 0x4b8c48
test ebx, ebx
jle 0x4b8c1c
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 0x4b8c48
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 0x4b8d1d
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 0x4b8cbe
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.004c2a90
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.004b8870
jmp 0x4b8d0c
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.004c2a90
add esp, 8
test eax, eax
je 0x4b8cf8
cmp eax, 1
je 0x4b8cf8
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.004c3f00
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