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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
xor eax, eax
push ebx
push esi
push edi
xor edi, edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test esi, esi
je 0x4ccb35
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004de9f8
add esp, 0x14
cmp dword [ebp - 4], 0
jne 0x4cc920
mov eax, 3
jmp 0x4ccb37
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 4]
pop ecx
mov edi, eax
test edi, edi
jne 0x4ccb2b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov eax, dword [esi + 0x14]
test eax, eax
jns 0x4cc946
add eax, 0x1ff
sar eax, 9
mov dword [ebp - 8], eax
lea edx, [ebp - 0x88]
push edx
push 1
push esi
call fcn.004b622c
add esp, 0xc
test eax, eax
je 0x4cc970
push eax
call fcn.004c99f4
pop ecx
mov edi, eax
jmp 0x4ccb2b
test ebx, ebx
je 0x4ccb1f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [ebx], ecx
lea ecx, [ebx + 0xe]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add edx, dword [eax + 0x18]
lea eax, [ebx + 0xc]
dec edx
mov dword [ebx + 4], edx
push ecx
push eax
lea edx, [ebx + 8]
push edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 4]
push edx
mov ecx, dword [ebx]
push ecx
call fcn.0052999c
add esp, 0x14
mov edi, eax
test edi, edi
jne 0x4ccb2b
lea eax, [ebx + 0x16]
push eax
lea edx, [ebx + 0x14]
push edx
lea ecx, [ebx + 0x10]
push ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 4]
push ecx
mov eax, dword [ebx + 4]
push eax
call fcn.0052999c
add esp, 0x14
mov edi, eax
test edi, edi
jne 0x4ccb2b
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ebx + 0x18], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x1c], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + 4]
mov dx, word [eax + 0x14]
mov word [ebx + 0x20], dx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 4]
mov cx, word [edx + 0x16]
mov word [ebx + 0x22], cx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 0x18]
mov dword [ebx + 0x30], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
imul ecx, edx
mov dword [ebx + 0x24], ecx
mov eax, dword [ebp - 0x6c]
imul edx
mov dword [ebx + 0x2c], eax
sub dword [ebx + 0x24], eax
mov edx, dword [ebx + 0x30]
sub edx, dword [ebx + 0x24]
sub edx, dword [ebx + 0x2c]
mov dword [ebx + 0x28], edx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x4c]
mov dword [ebx + 0x34], eax
mov edx, dword [esi + 0x10]
movzx ecx, word [edx + 0x3e]
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x28]
mov dword [ebx + 0x40], edx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [ebx + 0x44], eax
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 4]
mov dword [ebx + 0x48], ecx
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 8]
mov dword [ebx + 0x4c], edx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0x50], eax
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x10]
mov dword [ebx + 0x54], ecx
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0x14]
mov dword [ebx + 0x58], edx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x18]
mov dword [ebx + 0x5c], eax
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x20]
mov dword [ebx + 0x60], ecx
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0x28]
mov dword [ebx + 0x64], edx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x2c]
mov dword [ebx + 0x68], eax
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x30]
mov dword [ebx + 0x6c], ecx
mov eax, dword [esi + 0x10]
mov dx, word [eax + 0x34]
mov word [ebx + 0x70], dx
mov ecx, dword [esi + 0x10]
mov ax, word [ecx + 0x36]
mov word [ebx + 0x72], ax
mov edx, dword [esi + 0x10]
mov cx, word [edx + 0x3a]
mov word [ebx + 0x74], cx
mov eax, dword [esi + 0x10]
mov dx, word [eax + 0x3c]
mov word [ebx + 0x76], dx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x40]
mov dword [ebx + 0x78], eax
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x44]
mov dword [ebx + 0x7c], ecx
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.004dec3c
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret