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

Disassembly:
sub esp, 8
mov ecx, dword [0x5390a4]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov eax, dword [0x538ed0]
mov edx, dword [esp + 0x1c]
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, esi
mov esi, dword [esp + 0x10]
mov eax, dword [eax + edx*8]
mov edx, dword [eax + 0xc]
mov ebp, dword [eax + 0x14]
sub edx, ebp
xor eax, eax
mov al, byte [edx + esi]
mov esi, dword [ecx + 0x14]
mov ebp, eax
mov ecx, dword [ecx + 0xc]
mov eax, esi
mov edi, ecx
shl eax, 4
add eax, esi
lea edx, [eax + eax*2]
shl edx, 1
sub edi, edx
mov edx, 0xa
sub edx, esi
lea esi, [esp + 0x14]
mov eax, edx
push esi
movsx esi, word [edi + 0x3fe]
shl eax, 4
add eax, edx
push 0x3f800000
push esi
lea eax, [eax + eax*2]
movsx esi, word [edi + 0x400]
movsx eax, word [ecx + eax*2]
push eax
imul eax, ebp
mov ecx, dword [0x538c1c]
push esi
push eax
mov eax, dword [esp + 0x3c]
mov edx, dword [ecx]
push eax
push ebx
push 5
push ecx
call dword [edx + 0x78]
test eax, eax
fnclex
jge 0x4ced61
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [0x5390a4]
mov edx, dword [ecx + 0x14]
mov eax, edx
shl eax, 4
add eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 1
sub eax, edx
xor edx, edx
mov dl, byte [eax + ebp + 0x402]
mov eax, dword [esp + 0x10]
add ebx, edx
inc eax
cmp eax, 0xa
mov dword [esp + 0x10], eax
jle 0x4cecc1
mov esi, dword [0x538ed0]
mov edi, dword [esp + 0x1c]
xor eax, eax
mov ebp, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
sub edi, ebp
mov al, byte [edx + edi*8 + 4]
mov edi, 0xb
cmp eax, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edi
jl 0x4cee8e
mov ebp, dword [esp + 0x28]
jmp 0x4cedd1
mov esi, dword [0x538ed0]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x14]
sub eax, edx
mov edx, dword [esi + 0xc]
mov eax, dword [edx + eax*8]
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
sub edx, esi
xor eax, eax
mov al, byte [edx + edi]
mov edx, ebp
mov esi, eax
mov eax, dword [ecx + 0x14]
sub edx, eax
lea ebp, [esp + 0x14]
mov eax, edx
push ebp
shl eax, 4
add eax, edx
push 0x3f800000
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
movsx ebp, word [eax + edx*2 + 2]
lea ecx, [eax + edx*2]
push ebp
mov edx, dword [0x538c1c]
movsx eax, word [ecx]
movsx ecx, word [ecx + 4]
push eax
imul eax, esi
mov edi, dword [edx]
push ecx
push eax
mov eax, dword [esp + 0x3c]
push eax
push ebx
push 5
push edx
call dword [edi + 0x78]
test eax, eax
fnclex
jge 0x4cee52
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [0x5390a4]
mov ebp, dword [esp + 0x28]
mov edx, ebp
mov edi, dword [esp + 0x10]
sub edx, dword [ecx + 0x14]
mov eax, edx
shl eax, 4
add eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
lea edx, [eax + edx*2]
xor eax, eax
mov al, byte [edx + esi + 6]
add ebx, eax
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jle 0x4cedcb
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10