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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x64
cmp eax, 0xffffffff
push esi
mov esi, ecx
je 0x4c8ccd
push eax
call fcn.004ca040
cmp eax, dword [esi + 0x15114]
jl 0x4c913f
cmp eax, dword [esi + 0x15118]
jg 0x4c913f
mov eax, dword [esi + 0x15108]
test eax, eax
je 0x4c913f
mov eax, dword [esp + 0x70]
push ebx
push ebp
mov ebp, dword [0x4db6f8]
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
call ebp
mov eax, dword [esi + 0x10dc]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4c8d0d
mov edx, dword [esi + 0x70c]
mov ecx, dword [esp + 0x2c]
sub ecx, edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4c8d19
sub dword [esp + 0x2c], 0x18
lea eax, [esp + 0x24]
lea edi, [esi + 0x15170]
push eax
push edi
call ebp
mov ecx, dword [esi + 0x10dc]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x4c8d3f
push 0
push 0x18
push edi
call dword [0x4db71c]
mov ebx, dword [esp + 0x78]
push ebx
call dword [0x4db100]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
sub edx, ecx
mov edi, eax
mov eax, dword [esp + 0x2c]
push edx
sub eax, dword [esp + 0x28]
push eax
push ebx
call dword [0x4db104]
mov ebx, dword [0x4db124]
push eax
push edi
mov dword [esp + 0x28], eax
call ebx
push 0
lea ecx, [esi + 0x28]
mov dword [esp + 0x20], eax
call fcn.004c4530
push eax
push edi
call ebx
push 1
push edi
mov dword [esp + 0x20], eax
call dword [0x4db134]
lea ecx, [esp + 0x24]
push ecx
push edi
mov ecx, esi
call fcn.004cadc0
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push eax
call ebp
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esi + 0x15108]
mov eax, ebx
sub eax, ebp
sub eax, 3
cdq
idiv ecx
mov ebp, eax
mov eax, dword [esi + 0x10dc]
mov edx, dword [eax + 0x3c]
cmp ebp, edx
jg 0x4c8dd6
mov ebp, edx
mov edx, dword [eax + 0x38]
cmp ebp, edx
jl 0x4c8ddf
mov ebp, edx
mov edx, dword [eax + 0x44]
test edx, edx
jne 0x4c8e46
xor ebp, ebp
mov dword [esp + 0x7c], 0
test ecx, ecx
jle 0x4c8e20
lea ebx, [esi + 0x14cf0]
mov ecx, dword [ebx]
push ecx
mov ecx, esi
call fcn.004caad0
mov ecx, dword [esp + 0x7c]
add ebx, 4
add ecx, eax
mov eax, dword [esi + 0x15108]
inc ebp
mov dword [esp + 0x7c], ecx
cmp ebp, eax
jl 0x4c8dfa
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esi + 0x15108]
cmp eax, ebx
mov eax, ebx
cdq
jle 0x4c8e35
idiv ecx
jmp 0x4c8e44
idiv ecx
mov edx, dword [esi + 0x10dc]
mov ebp, dword [edx + 0x38]
cmp eax, ebp
jge 0x4c8e46
mov ebp, eax
mov edx, dword [esi + 0x15110]
lea eax, [ecx - 1]
mov dword [esi + 0x15118], eax
mov eax, dword [esi + edx*4 + 0x14cf0]
mov dword [esp + 0x14], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x7c], eax
jle 0x4c900c
mov ecx, dword [esp + 0x34]
lea ebx, [esi + 0x14cf0]
cmp eax, dword [esi + 0x15114]
jl 0x4c8fc3
mov edx, dword [esi + 0x10dc]
mov eax, dword [edx + 0x44]
test eax, eax
je 0x4c8e9e
lea eax, [ecx + ebp]
mov dword [esp + 0x3c], eax
jmp 0x4c8f11
add ecx, ebp
lea edx, [esp + 0x44]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [0x4db6f8]
lea eax, [esp + 0x44]
push 0x424
push eax
mov eax, dword [ebx]
push 0xffffffffffffffff
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
lea edx, [esi + ecx*4 + 0x10f0]
push edx
push edi
call dword [0x4db704]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
sub eax, ecx
lea ecx, [ebp - 0x20]
cmp eax, ecx
mov ecx, dword [esp + 0x34]
jge 0x4c8ef8
lea eax, [eax + ecx + 0x20]
mov dword [esp + 0x3c], eax
jmp 0x4c8efc
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 0x10dc]
sub eax, ecx
mov edx, dword [edx + 0x3c]
cmp eax, edx
jge 0x4c8f11
add edx, ecx
mov dword [esp + 0x3c], edx
cmp ecx, dword [esp + 0x2c]
jg 0x4c8fdf
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebx]
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
lea edx, [esi + ecx*4 + 0x1200]
push edx
call dword [0x4db6f8]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esi + 0x15110]
cmp ecx, eax
jne 0x4c8f60
lea ecx, [esp + 0x34]
lea edx, [esp + 0x54]
push ecx
push edx
call dword [0x4db6f8]
mov dword [esp + 0x10], 1
jmp 0x4c8f92
mov ecx, dword [esp + 0x80]
cmp ecx, 0xffffffff
jne 0x4c8f7a
mov eax, dword [ebx]
push 0
push 1
lea ecx, [esp + 0x3c]
push eax
push ecx
jmp 0x4c8f8a
mov eax, dword [ebx]
cmp eax, ecx
jne 0x4c8f92
push 0
push 1
lea edx, [esp + 0x3c]
push eax
push edx
push edi
mov ecx, esi
call fcn.004c94b0
mov eax, dword [esi + 0x10dc]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4c8fbb
mov eax, dword [ebx]
push 0
push 0x18
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
lea edx, [esi + ecx*4 + 0x1200]
push edx
call dword [0x4db71c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x7c]
mov edx, dword [esi + 0x15108]
inc eax
add ebx, 4
cmp eax, edx
mov dword [esp + 0x7c], eax
jl 0x4c8e7c
jmp 0x4c8fea
mov eax, dword [esp + 0x7c]
dec eax
mov dword [esi + 0x15118], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c9008
mov ecx, dword [esp + 0x14]
push 0
push 1
lea edx, [esp + 0x5c]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004c94b0
mov ebx, dword [esp + 0x2c]
mov eax, dword [esi + 0x10dc]
mov dword [esp + 0x7c], 0
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4c9029
mov dword [esp + 0x7c], 0x18
mov eax, dword [esp + 0x80]
cmp eax, 0xffffffff
jne 0x4c906b
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x7c]
push 0xcc0020
push 0
push 0
sub ecx, esi
push edi
sub ebx, eax
mov eax, dword [esp + 0x88]
push ecx
push ebx
push 0
push edx
push eax
call dword [0x4db10c]
jmp 0x4c9114
lea ecx, [eax + eax*4]
lea edx, [esp + 0x64]
shl ecx, 4
sub ecx, eax
lea ebp, [esi + ecx*4]
lea ebx, [ebp + 0x1200]
push ebx
push edx
call dword [0x4db6f8]
mov eax, dword [esi + 0x15110]
mov ecx, dword [esp + 0x80]
cmp ecx, dword [esi + eax*4 + 0x14cf0]
jne 0x4c90ce
mov eax, dword [esi + 0x10d0]
test eax, eax
je 0x4c90ce
push 0
push eax
push ebx
call dword [0x4db6f4]
mov edx, dword [esi + 0x15110]
mov eax, dword [esi + 0x15114]
cmp edx, eax
jne 0x4c90ce
mov eax, dword [esi + 0x10d0]
mov ecx, dword [ebx]
add ecx, eax
mov dword [ebx], ecx
mov ecx, dword [ebx]
mov esi, dword [esp + 0x7c]
mov eax, dword [ebp + 0x1204]
mov edx, ecx
push 0xcc0020
sub edx, esi
push eax
push edx
mov edx, dword [ebp + 0x120c]
push edi
sub edx, eax
push edx
mov edx, dword [ebp + 0x1208]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x94]
push ecx
push eax
call dword [0x4db10c]
lea ecx, [esp + 0x64]
push ecx
push ebx
call dword [0x4db6f8]
mov edx, dword [esp + 0x18]
mov esi, dword [0x4db124]
push edx
push edi
call esi
mov eax, dword [esp + 0x1c]
push eax
push edi
call esi
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x4db12c]
push edi
call dword [0x4db110]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x64
ret 0xc