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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x10], eax
mov esi, dword [eax + 0x10]
xor eax, eax
movzx edx, byte [esi + 0x15]
cmp edx, 4
ja case.default.0x4c8926
jmp dword [edx*4 + 0x6057b8]
mov eax, dword [ebp - 0x10]
call fcn.004c8898
jmp 0x4c8bf4
cmp dword [esi + 0x24], 0
je 0x4c894e
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004c818a
mov ebx, dword [esi + 0x8c]
lea eax, [esi + 0x78]
cmp ebx, eax
je 0x4c8984
movzx eax, byte [ebx + 5]
test al, 4
jne 0x4c897f
test al, 3
jne 0x4c897f
mov eax, dword [ebx + 8]
cmp dword [eax + 8], 3
jle 0x4c897f
mov edx, dword [eax]
test byte [edx + 5], 3
je 0x4c897f
mov eax, esi
call fcn.004c8062
mov ebx, dword [ebx + 0x14]
jmp 0x4c8954
mov eax, esi
call fcn.004c85d0
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x2c], 0
test byte [eax + 5], 3
je 0x4c89aa
mov edx, eax
mov eax, esi
call fcn.004c8062
mov eax, esi
call fcn.004c886d
mov eax, esi
call fcn.004c85d0
mov eax, dword [esi + 0x28]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0
mov eax, esi
call fcn.004c85d0
push 0
push dword [ebp - 0x10]
call fcn.004c80f0
pop ebx
mov ebx, dword [esi + 0x30]
pop edi
test ebx, ebx
mov dword [ebp - 0x14], eax
je 0x4c8a03
mov ebx, dword [ebx]
mov dl, byte [esi + 0x14]
and edx, 3
mov al, byte [ebx + 5]
and eax, 0xfffffff8
or eax, edx
mov edx, ebx
mov byte [ebx + 5], al
mov eax, esi
call fcn.004c8062
cmp ebx, dword [esi + 0x30]
jmp 0x4c89e0
mov eax, esi
call fcn.004c85d0
mov edx, dword [esi + 0x2c]
add dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x4c8aca
mov edi, dword [ebp - 0x18]
mov ebx, dword [edi + 0x1c]
test byte [edi + 5], 0x10
je 0x4c8a5e
dec ebx
cmp ebx, 0xffffffff
je 0x4c8a5e
mov edi, ebx
shl edi, 4
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xc]
add edx, edi
mov dword [ebp - 0x1c], edx
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.004c85f0
test eax, eax
je 0x4c8a55
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
dec ebx
sub edi, 0x10
cmp ebx, 0xffffffff
jne 0x4c8a32
mov edx, dword [ebp - 0x18]
mov ebx, 1
movzx ecx, byte [edx + 7]
shl ebx, cl
dec ebx
cmp ebx, 0xffffffff
je 0x4c8abf
mov edi, ebx
shl edi, 5
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
add edi, dword [eax + 0x10]
cmp dword [edi + 8], 0
je 0x4c8ab5
lea eax, [edi + 0x10]
mov edx, 1
call fcn.004c85f0
test eax, eax
jne 0x4c8aa7
xor edx, edx
mov eax, edi
call fcn.004c85f0
test eax, eax
je 0x4c8ab5
mov dword [edi + 8], 0
mov eax, edi
call fcn.004c8050
dec ebx
sub dword [ebp - 0x24], 0x20
cmp ebx, 0xffffffff
jne 0x4c8a7a
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x18]
jmp 0x4c8a10
xor byte [esi + 0x14], 3
lea eax, [esi + 0x1c]
mov byte [esi + 0x15], 2
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x44]
sub eax, dword [ebp - 0x14]
mov dword [esi + 0x18], 0
mov dword [esi + 0x48], eax
jmp 0x4c8bf4
mov eax, dword [esi + 0x18]
mov edx, dword [esi]
mov ebx, dword [esi + 0x44]
lea edx, [edx + eax*4]
inc eax
mov dword [esi + 0x18], eax
push 0xfffffffffffffffd
mov eax, dword [ebp - 0x10]
call fcn.004c862e
mov eax, dword [esi + 8]
pop ecx
cmp dword [esi + 0x18], eax
jl 0x4c8b13
mov byte [esi + 0x15], 3
sub ebx, dword [esi + 0x44]
mov eax, 0xa
sub dword [esi + 0x48], ebx
jmp case.default.0x4c8926
mov edi, dword [esi + 0x44]
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x20], edi
push 0x28
mov eax, dword [ebp - 0x10]
call fcn.004c862e
mov dword [esi + 0x20], eax
cmp dword [eax], 0
pop edx
jne 0x4c8bb3
mov eax, dword [ebp - 0x10]
mov edx, 4
mov edi, edx
mov ebx, dword [eax + 0x10]
mov ecx, dword [ebx + 8]
mov eax, ecx
cdq
idiv edi
mov dword [ebp - 0x28], eax
cmp dword [ebx + 4], eax
jae 0x4c8b78
cmp ecx, 0x40
jle 0x4c8b78
mov eax, ecx
mov edx, 2
mov edi, edx
cdq
idiv edi
push eax
push dword [ebp - 0x10]
call fcn.004c59d0
pop ecx
pop edi
mov eax, dword [ebx + 0x3c]
cmp eax, 0x40
jbe 0x4c8baf
mov edi, eax
shr edi, 1
lea eax, [edi + 1]
cmp eax, 0xfffffffd
ja 0x4c8ba0
push edi
push dword [ebx + 0x3c]
push dword [ebx + 0x34]
push dword [ebp - 0x10]
call fcn.004cb0e4
add esp, 0x10
jmp 0x4c8ba9
push dword [ebp - 0x10]
call fcn.004cb0d0
pop edx
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x3c], edi
mov byte [esi + 0x15], 4
mov eax, dword [esi + 0x44]
sub dword [ebp - 0x20], eax
mov eax, 0x190
mov edx, dword [ebp - 0x20]
sub dword [esi + 0x48], edx
jmp case.default.0x4c8926
cmp dword [esi + 0x30], 0
je 0x4c8be9
mov eax, dword [ebp - 0x10]
call fcn.004c872c
mov eax, dword [esi + 0x48]
cmp eax, 0x64
jbe 0x4c8be2
sub eax, 0x64
mov dword [esi + 0x48], eax
mov eax, 0x64
jmp case.default.0x4c8926
mov byte [esi + 0x15], 0
mov dword [esi + 0x4c], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret