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

Disassembly:
push ebp
mov ebp, esp
push 0x40
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
mov eax, dword [0x4f10b8]
sub eax, dword [0x4f10b4]
jo 0x4bc633
cmp eax, 0x3c
jge 0x4bc407
mov eax, dword [0x4f2690]
cmp dword [eax + 0x14], 0
jne 0x4bc407
mov eax, dword [0x4f163c]
sub eax, 1
jo 0x4bc633
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
and dword [ebp - 4], 0
jmp 0x4bc386
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
jo 0x4bc633
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jg 0x4bc407
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xb
jae 0x4bc3a0
and dword [ebp - 0x2c], 0
jmp 0x4bc3a8
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x134
mov ecx, dword [0x4f1630]
mov edx, dword [0x4f2690]
mov eax, dword [ecx + eax + 0x98]
cmp eax, dword [edx + 0x14]
jle 0x4bc402
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xb
jae 0x4bc3db
and dword [ebp - 0x30], 0
jmp 0x4bc3e3
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x134
mov ecx, dword [0x4f2690]
mov edx, dword [0x4f1630]
mov eax, dword [edx + eax + 0x98]
mov dword [ecx + 0x14], eax
jmp 0x4bc377
mov eax, dword [ebp + 0xc]
cmp word [eax], 0xffff
jne 0x4bc434
and word [0x4f157c], 0
and dword [ebp - 0xc], 0
mov dword [0x4f156c], 0x1c96344
mov eax, dword [0x4f2690]
and dword [eax + 0x14], 0
jmp 0x4bc627
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4bc445
and dword [ebp - 0xc], 0
jmp 0x4bc627
mov eax, dword [ebp + 8]
cmp dword [eax], 0xebbf90
jge 0x4bc468
mov eax, dword [0x4f2690]
mov dword [eax + 0x14], 5
mov dword [ebp - 0xc], 5
jmp 0x4bc627
mov eax, dword [ebp + 8]
cmp dword [eax], 0xee0980
jge 0x4bc497
mov eax, dword [0x4f2690]
cmp dword [eax + 0x14], 4
jg 0x4bc487
mov dword [ebp - 0xc], 4
jmp 0x4bc492
mov eax, dword [0x4f2690]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4bc627
mov dword [ebp - 0x24], 0xe
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
jmp 0x4bc4ba
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
jo 0x4bc633
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
jg 0x4bc614
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x10
jae 0x4bc4d8
and dword [ebp - 0x34], 0
jmp 0x4bc4e0
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x4f267c]
mov eax, dword [eax]
cmp eax, dword [edx + ecx*4]
jle 0x4bc60f
fild dword [ebp - 4]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
cmp dword [section..data], 0
jne 0x4bc511
fdiv qword [0x401468]
jmp 0x4bc522
push dword [0x40146c]
push dword [0x401468]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fnstsw ax
test al, 0xd
jne 0x4bc62e
call sub.MSVBVM60.DLL___vbaR8IntI4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 3
je 0x4bc55d
cmp dword [ebp - 0x40], 6
je 0x4bc57e
cmp dword [ebp - 0x40], 9
je 0x4bc5a2
cmp dword [ebp - 0x40], 0xc
je 0x4bc5c3
jmp 0x4bc5e2
mov eax, dword [ebp + 8]
cmp dword [eax], 0x19bfcc0
jle 0x4bc57c
mov eax, dword [0x4f2690]
cmp dword [eax + 0x14], 0
jg 0x4bc57c
and dword [ebp - 0xc], 0
jmp 0x4bc627
jmp 0x4bc5e2
mov eax, dword [ebp + 8]
cmp dword [eax], 0x16e3600
jle 0x4bc5a0
mov eax, dword [0x4f2690]
cmp dword [eax + 0x14], 1
jg 0x4bc5a0
mov dword [ebp - 0xc], 1
jmp 0x4bc627
jmp 0x4bc5e2
mov eax, dword [ebp + 8]
cmp dword [eax], 0x1406f40
jle 0x4bc5c1
mov eax, dword [0x4f2690]
cmp dword [eax + 0x14], 2
jg 0x4bc5c1
mov dword [ebp - 0xc], 2
jmp 0x4bc627
jmp 0x4bc5e2
mov eax, dword [ebp + 8]
cmp dword [eax], 0x112a880
jle 0x4bc5e2
mov eax, dword [0x4f2690]
cmp dword [eax + 0x14], 3
jg 0x4bc5e2
mov dword [ebp - 0xc], 3
jmp 0x4bc627
mov eax, dword [0x4f2690]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jge 0x4bc5fc
mov eax, dword [0x4f2690]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4bc60d
mov eax, dword [0x4f2690]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x4bc627
jmp 0x4bc4ab
mov eax, dword [0x4f2690]
mov dword [eax + 0x14], 5
mov dword [ebp - 0xc], 5
mov eax, dword [ebp - 0xc]
leave
ret 8
jmp fcn.00404d9c
call sub.MSVBVM60.DLL___vbaErrorOverflow