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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x5e4]
cmp ebx, eax
jl 0x4bc6ea
lea ebx, [eax - 1]
cmp dword [esp + 0x34], eax
jl 0x4bc6f7
add eax, 0xffffffff
mov dword [esp + 0x34], eax
cmp ebx, dword [esp + 0x34]
jg 0x4bca95
push ebp
push edi
jmp 0x4bc710
mov eax, dword [esi + 0x138]
mov eax, dword [eax + ebx*4]
test dword [eax + 0x38], 0x4000
je 0x4bca86
mov ecx, dword [esp + 0x20]
cmp dword [eax + 0x34], ecx
je 0x4bc73a
cmp dword [esp + 0x40], 0
je 0x4bca86
mov edx, dword [eax + 0x14]
mov ecx, dword [esi + 0x2b38]
imul edx, edx, 0x58
mov edx, dword [edx + ecx + 0x18]
and edx, 0x3000
cmp edx, dword [esp + 0x40]
jne 0x4bca86
mov eax, dword [eax + 0x30]
test eax, eax
je 0x4bc77b
mov ecx, dword [esi + 0x72c]
imul eax, eax, 0x98
test dword [ecx + eax + 0x28], 0x8000
je 0x4bca86
push ebx
push esi
call fcn.004ad140
mov edx, dword [esi + 0x138]
mov dword [esp + 0x18], eax
mov eax, dword [edx + ebx*4]
xor ecx, ecx
add esp, 8
cmp dword [eax + 0xc], ecx
mov dword [esp + 0x38], ecx
jle 0x4bca7c
mov edx, dword [esp + 0x10]
movzx ebp, word [edx + ecx*2]
mov eax, dword [esi + 0x3434]
imul ebp, ebp, 0x170
add eax, ebp
cmp dword [eax + 0x13c], 0
je 0x4bca63
test byte [eax + 0x134], 0x80
je 0x4bca63
cmp dword [eax + 0xc0], 0
je 0x4bca63
mov eax, dword [eax + 0xc4]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4bca63
mov edi, dword [esi + 0x70c]
mov ecx, dword [esi + 0x704]
mov dword [esp + 0x14], edi
imul edi, edi, 0xb4
push ebx
push esi
mov dword [edi + ecx], 0
call fcn.004aea30
mov edx, dword [esi + 0x704]
mov dword [edi + edx + 0x40], eax
mov eax, dword [esi + 0x704]
mov dword [edi + eax + 4], ebx
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 8], ebx
mov edx, dword [esi + 0x704]
mov ecx, dword [esp + 0x24]
mov dword [edi + edx + 0x88], ecx
mov eax, dword [esi + 0x704]
or dword [edi + eax + 0x8c], 0x800
mov edx, dword [esi + 0x3434]
lea eax, [edi + eax + 0x8c]
add esp, 8
cmp dword [edx + ebp + 0x88], 0xb
jne 0x4bc883
mov eax, dword [esi + 0x704]
or dword [edi + eax + 0x8c], 8
lea eax, [edi + eax + 0x8c]
mov edx, dword [esi + 0x704]
mov ebp, ecx
mov ecx, dword [esi + 0x72c]
imul ebp, ebp, 0x98
mov eax, dword [ecx + ebp + 0x4c]
mov dword [edi + edx + 0x9c], eax
mov ecx, dword [esi + 0x510]
mov edx, dword [esi + 0x72c]
mov eax, dword [edx + ebp + 0x10]
push 0x5a0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 0x24], eax
mov edx, dword [esi + 0x510]
mov eax, dword [esi + 0x72c]
mov ecx, dword [eax + ebp + 0x14]
push 0x5a0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esi + 0x704]
mov dword [edi + edx + 0x7c], eax
mov eax, dword [esi + 0x510]
mov ecx, dword [esi + 0x72c]
mov edx, dword [ecx + ebp + 0x14]
push 0x5a0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 0x80], eax
mov edx, dword [esi + 0x514]
mov eax, dword [esi + 0x72c]
mov ecx, dword [eax + ebp + 0x14]
push 0x5a0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esi + 0x704]
mov dword [edi + edx + 0x74], eax
mov eax, dword [esi + 0x514]
mov ecx, dword [esi + 0x72c]
mov edx, dword [ecx + ebp + 0x14]
push 0x5a0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 0x78], eax
mov edx, dword [esi + 0x514]
mov eax, dword [esi + 0x72c]
mov ecx, dword [eax + ebp + 0x18]
push 0x5a0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esi + 0x704]
mov dword [edi + edx + 0x28], eax
mov eax, dword [esi + 0x504]
mov ecx, dword [esi + 0x72c]
mov edx, dword [ecx + ebp + 0x18]
push 0x5a0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 0x38], eax
mov edx, dword [esi + 0x704]
mov ecx, dword [edi + edx + 0x38]
lea eax, [edi + edx]
mov dword [eax + 0x30], ecx
mov edx, dword [esi + 0x510]
mov eax, dword [esi + 0x72c]
mov ecx, dword [eax + ebp + 4]
push 0x5a0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esi + 0x704]
mov dword [edi + edx + 0x14], eax
cmp dword [esi + 0x654], 0
je 0x4bca0c
mov ecx, dword [esi + 0x564]
mov eax, dword [esi + 0x704]
add ecx, dword [esp + 0x2c]
lea eax, [edi + eax + 0x14]
add dword [eax], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push ebx
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 0x138]
push ecx
mov ecx, dword [eax + ebx*4]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [ecx + 0x24]
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
push esi
call fcn.004ba810
mov eax, 1
add dword [esi + 0x70c], eax
mov dword [esi + 0x744], eax
mov eax, dword [esi + 0x70c]
push eax
push esi
call fcn.004bba60
mov ecx, dword [esp + 0x64]
add esp, 0x2c
mov edx, dword [esi + 0x138]
mov eax, dword [edx + ebx*4]
add ecx, 1
cmp ecx, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
jl 0x4bc7a1
push ebx
push esi
call fcn.004ad1d0
add esp, 8
add ebx, 1
cmp ebx, dword [esp + 0x3c]
jle 0x4bc710
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret