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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x408da6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x406848
push 3
lea eax, [ebp - 0x28]
xor ebx, ebx
push 0x43ff50
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], ebx
call sub.MSVBVM60.DLL___vbaAryConstruct2
push dword [0x571ec0]
push 1
call sub.MSVBVM60.DLL___vbaUbound
mov esi, dword [ebp + 8]
cmp esi, eax
jg 0x52af9a
push esi
push dword [0x571ec0]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov edi, eax
call fcn.00521901
mov edx, eax
push esi
sub edx, dword [edi + 0x38]
push dword [0x571ec0]
jo 0x52afef
mov dword [ebp - 0x90], edx
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ax, word [eax + 0x3c]
mov ecx, dword [ebp - 0x90]
imul ax, ax, 0x19
jo 0x52afef
movsx eax, ax
cmp ecx, eax
jle 0x52adbb
push esi
push dword [0x571ec0]
call sub.MSVBVM60.DLL___vbaDerefAry1
cmp word [eax + 0x3c], 0xffff
je 0x52adbb
push esi
call fcn.0052b47d
jmp 0x52af9a
push dword [0x571ec0]
lea eax, [ebp - 0x7c]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push esi
push dword [ebp - 0x7c]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, dword [ebp - 0x1c]
mov esi, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x8c]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x90]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x94]
mov dword [ecx + 0xc], eax
fld dword [0x5719dc]
fadd dword [esi + 0x10]
fnstsw ax
test al, 0xd
jne 0x52afea
fstp dword [ebp - 0x94]
fld dword [ebp - 0x94]
fstp dword [esi + 0x10]
fld dword [ebp - 0x94]
fcomp dword [esi + 0x14]
fnstsw ax
sahf
jbe 0x52ae3e
fldz
mov dword [ebp - 0x30], ebx
fstp dword [esi + 0x10]
jmp 0x52ae42
or dword [ebp - 0x30], 0xffffffff
mov eax, dword [esi + 0x20]
push 1
mov dword [ebp - 0x88], eax
pop edi
cmp edi, dword [ebp - 0x88]
jg 0x52af7a
push dword [esi + 0x28]
push 1
call fcn.00496310
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push ebx
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], 3
push eax
call sub.MSVBVM60.DLL_rtcRound
lea eax, [ebp - 0x28]
mov dword [ebp - 0x6c], eax
push dword [esi + 0x1c]
lea eax, [ebp - 0x38]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
mov ax, word [esi + 0x78]
fld dword [esi + 0x68]
push eax
mov ax, word [esi + 0x7c]
push ecx
fstp dword [esp]
push eax
mov ax, word [esi + 0x84]
push eax
mov ax, word [esi + 0x82]
push eax
mov ax, word [esi + 0x80]
push eax
mov ax, word [esi + 0x7e]
push eax
mov ax, word [esi + 0x7a]
push eax
mov ax, word [esi + 0x4a]
push eax
mov ax, word [esi + 0x46]
push eax
lea eax, [esi + 0x70]
push dword [esi + 0x74]
fld dword [esi + 0x64]
push eax
mov ax, word [esi + 0x6c]
push eax
push ecx
mov ecx, dword [esi + 0x60]
fstp dword [esp]
call sub.MSVBVM60.DLL___vbaI2I4
mov ecx, dword [esi + 0x5c]
push eax
call sub.MSVBVM60.DLL___vbaI2I4
mov ecx, dword [esi + 0x58]
push eax
call sub.MSVBVM60.DLL___vbaI2I4
push eax
mov ax, word [esi + 0x54]
push eax
mov ax, word [esi + 0x52]
push eax
mov ax, word [esi + 0x50]
push eax
mov ax, word [esi + 0x4e]
push eax
mov ax, word [esi + 0x4c]
push eax
mov ax, word [esi + 0x48]
push eax
mov ax, word [esi + 0x44]
push eax
mov ax, word [esi + 0x2c]
push dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
call sub.MSVBVM60.DLL___vbaI4Var
push eax
push dword [esi + 0x24]
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push dword [ebp - 0x38]
call sub.MSVBVM60.DLL___vbaDerefAry1
push eax
call 0x52aff4
lea eax, [ebp - 0x38]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
push 1
pop eax
add eax, edi
jo 0x52afef
mov edi, eax
jmp 0x52ae4e
cmp word [ebp - 0x30], bx
jne 0x52af91
cmp word [esi + 0x34], bx
jne 0x52af91
mov eax, dword [esi + 0x30]
sub eax, 1
jo 0x52afef
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x7c]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
wait
push 0x52afd9
jmp 0x52afbe
lea eax, [ebp - 0x7c]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0x28]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
ret
jmp fcn.00408dac
call sub.MSVBVM60.DLL___vbaErrorOverflow
push ebp
mov ebp, esp
push ecx
push ecx
cmp word [ebp + 0x20], 0
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x52b213
cmp dword [esi + 0x30], 0
jne 0x52b0b6
push 2
lea eax, [esi + 0x18]
push dword [ebp + 0x14]
push eax
call fcn.0049db01
movsx eax, word [ebp + 0x5c]
push eax
movsx eax, word [ebp + 0x24]
push eax
call fcn.00496310
sub eax, 0x10
jo 0x52b297
mov dword [ebp + 0x20], eax
movsx eax, word [ebp + 0x60]
fild dword [ebp + 0x20]
push eax
movsx eax, word [ebp + 0x28]
fstp dword [esi + 4]
push eax
call fcn.00496310
sub eax, 0x10
jo 0x52b297
mov dword [ebp + 0x20], eax
movsx eax, word [ebp + 0x34]
fild dword [ebp + 0x20]
push eax
movsx eax, word [ebp + 0x30]
fstp dword [esi + 8]
push eax
call fcn.00496310
mov dword [ebp + 0x20], eax
movsx eax, word [ebp + 0x3c]
fild dword [ebp + 0x20]
push eax
movsx eax, word [ebp + 0x38]
fstp dword [esi + 0xc]
push eax
call fcn.00496310
mov dword [ebp + 0x20], eax
movsx eax, word [ebp + 0x44]
fild dword [ebp + 0x20]
push eax
movsx eax, word [ebp + 0x40]
fstp dword [esi + 0x10]
push eax
call fcn.00496310
mov dword [esi + 0x30], eax
movsx eax, word [ebp + 0x48]
mov dword [ebp + 0x20], eax
fild dword [ebp + 0x20]
fstp dword [esi]
jmp 0x52b19c
cmp word [ebp + 0x50], 0xffff
jne 0x52b0ec
mov eax, dword [ebp + 0x54]
fild dword [eax]
fstp qword [ebp - 8]
fld dword [esi + 0x10]
fadd qword [ebp - 8]
fstp dword [esi + 0x10]
fnstsw ax
test al, 0xd
jne 0x52b292
fld dword [esi + 8]
fcomp dword [0x401f18]
fnstsw ax
sahf
jbe 0x52b0ec
fild dword [ebp + 0x58]
fstp dword [esi + 0x10]
cmp word [ebp + 0x80], 0
je 0x52b14b
fld dword [ebp + 0x7c]
call sub.MSVBVM60.DLL___vbaFpI4
fld dword [ebp + 0x4c]
push eax
call sub.MSVBVM60.DLL___vbaFpI4
push eax
call fcn.00496310
mov dword [ebp + 0x20], eax
fild dword [ebp + 0x20]
fstp qword [ebp - 8]
fld qword [ebp - 8]
cmp dword [section..data], 0
jne 0x52b12a
fdiv qword [0x405be0]
jmp 0x52b13b
push dword [0x405be4]
push dword [0x405be0]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fadd dword [esi + 0x14]
fstp dword [esi + 0x14]
fnstsw ax
test al, 0xd
jne 0x52b292
fld dword [esi + 0x14]
fcomp dword [0x401f20]
fnstsw ax
sahf
jb 0x52b15e
fldz
fstp dword [esi + 0x14]
cmp word [ebp + 0x64], 0xffff
jne 0x52b17d
movsx eax, word [ebp + 0x6c]
push eax
movsx eax, word [ebp + 0x68]
push eax
call fcn.00496310
mov dword [ebp + 0x20], eax
fild dword [ebp + 0x20]
fstp dword [esi + 0xc]
cmp word [ebp + 0x78], 0xffff
jne 0x52b19c
movsx eax, word [ebp + 0x74]
push eax
movsx eax, word [ebp + 0x70]
push eax
call fcn.00496310
mov dword [ebp + 0x20], eax
fild dword [ebp + 0x20]
fstp dword [esi + 0x10]
fld dword [esi + 0xc]
call sub.MSVBVM60.DLL___vbaFpI4
fld dword [esi]
mov edi, eax
call sub.MSVBVM60.DLL___vbaFpI4
mov ecx, eax
mov eax, edi
cdq
idiv ecx
mov dword [ebp + 0x20], eax
fild dword [ebp + 0x20]
fstp qword [ebp - 8]
fld dword [esi + 4]
fadd qword [ebp - 8]
fstp dword [esi + 4]
fnstsw ax
test al, 0xd
jne 0x52b292
fld dword [esi + 0x10]
call sub.MSVBVM60.DLL___vbaFpI4
fld dword [esi]
mov edi, eax
call sub.MSVBVM60.DLL___vbaFpI4
mov ecx, eax
mov eax, edi
cdq
idiv ecx
mov dword [ebp + 0x20], eax
fild dword [ebp + 0x20]
fstp qword [ebp - 8]
fld dword [esi + 8]
fadd qword [ebp - 8]
fstp dword [esi + 8]
fnstsw ax
test al, 0xd
jne 0x52b292
mov eax, dword [esi + 0x30]
sub eax, 1
jo 0x52b297
mov dword [esi + 0x30], eax
cmp dword [esi + 0x18], 0
lea edi, [esi + 0x18]
je 0x52b28c
fld1
push ecx
fstp dword [esp]
fld1
push ecx
fstp dword [esp]
fld dword [esi + 0x14]
push ecx
mov cx, 1
fstp dword [esp]
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
mov cx, 1
push dword [ebp + 0x18]
call sub.MSVBVM60.DLL___vbaUI1I2
push eax
movsx eax, word [ebp + 0x10]
mov dword [ebp + 0x20], eax
fild dword [ebp + 0x20]
fstp dword [ebp + 0x20]
fld dword [ebp + 0x20]
fadd dword [esi + 8]
fnstsw ax
test al, 0xd
jne 0x52b292
call sub.MSVBVM60.DLL___vbaFpI2
push eax
movsx eax, word [ebp + 0xc]
mov dword [ebp + 0x20], eax
fild dword [ebp + 0x20]
fstp dword [ebp + 0x20]
fld dword [ebp + 0x20]
fadd dword [esi + 4]
fnstsw ax
test al, 0xd
jne 0x52b292
call sub.MSVBVM60.DLL___vbaFpI2
push eax
push edi
call fcn.004a171d
pop edi
pop esi
leave
ret 0x7c
jmp fcn.00408dac
call sub.MSVBVM60.DLL___vbaErrorOverflow