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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov edi, dword [esp + 0xb4]
mov esi, dword [esp + 0xb0]
mov eax, edi
sub eax, esi
cmp eax, 0x28
mov dword [esp + 0x5c], eax
jle 0x4cb00e
sar eax, 3
imul eax, eax, 0xcccccccd
lea edx, [eax - 2]
mov dword [esp + 0x58], eax
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
mov ebp, eax
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
mov esi, ebp
jmp 0x4caf33
sub esi, 1
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
sub ebx, 0x28
mov ecx, dword [ebx + 0x3c]
mov ebp, dword [ebx + 0x34]
mov edi, dword [ebx + 0x38]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x50], ecx
mov edx, dword [ebx + 0x44]
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x84], edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
call fcn.004ca330
test esi, esi
jne 0x4caf30
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
cmp edi, dword [esp + 0xb8]
jae 0x4cb0ff
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0xbc]
sar ebx, 3
imul ebx, ebx, 0xcccccccd
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0xb8]
jmp 0x4cb04b
add edi, 0x28
cmp ebx, edi
jbe 0x4cb0ff
mov dword [esp + 4], esi
mov dword [esp], edi
call ebp
test al, al
je 0x4cb040
mov edx, dword [edi + 4]
mov eax, dword [edi]
add edi, 0x28
mov dword [esp + 0x10], edx
mov edx, dword [edi - 0x20]
mov dword [esp + 0x14], edx
mov edx, dword [edi - 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [edi - 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [edi - 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [edi - 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [edi - 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [edi - 8]
mov dword [esp + 0x2c], edx
mov edx, dword [edi - 4]
mov dword [esp + 0x30], edx
mov ecx, dword [esi]
mov dword [edi - 0x28], ecx
mov ecx, dword [esi + 4]
mov dword [edi - 0x24], ecx
mov ecx, dword [esi + 8]
mov dword [edi - 0x20], ecx
mov ecx, dword [esi + 0xc]
mov dword [edi - 0x1c], ecx
mov ecx, dword [esi + 0x10]
mov dword [edi - 0x18], ecx
mov ecx, dword [esi + 0x14]
mov dword [edi - 0x14], ecx
mov ecx, dword [esi + 0x18]
mov dword [edi - 0x10], ecx
mov ecx, dword [esi + 0x1c]
mov dword [edi - 0xc], ecx
mov ecx, dword [esi + 0x20]
mov dword [edi - 8], ecx
mov ecx, dword [esi + 0x24]
mov dword [edi - 4], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], ebp
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.004ca330
cmp ebx, edi
ja 0x4cb04b
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret