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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x408da6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xd8
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x406890
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push dword [0x571ec0]
lea eax, [ebp - 0xcc]
push eax
call sub.MSVBVM60.DLL___vbaAryLock
push dword [ebp + 8]
push dword [ebp - 0xcc]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov dword [ebp - 0xd0], eax
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0xd0]
cmp word [eax + 8], 0
jle 0x52b557
mov eax, dword [ebp - 0xd0]
cmp word [eax + 0xa], 0
jle 0x52b557
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xd0]
movsx eax, word [eax + 8]
push eax
mov eax, dword [ebp - 0xd0]
movsx eax, word [eax + 0xa]
push eax
push dword [0x571a0c]
push 2
call sub.MSVBVM60.DLL___vbaDerefAry
add esp, 0x10
and dword [eax + 0xb4], 0
jmp 0x52b6f3
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xd0]
cmp dword [eax + 0xc], 0
je 0x52b6f3
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0xc]
call sub.MSVBVM60.DLL___vbaI2I4
push eax
call fcn.0052bb28
movsx eax, ax
test eax, eax
je 0x52b6f3
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 0xc]
dec eax
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0x2710
jae 0x52b5c0
and dword [ebp - 0xf0], 0
jmp 0x52b5cb
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xc8]
imul eax, eax, 0x30c
mov ecx, dword [0x571a90]
mov ecx, dword [ecx + eax + 0x304]
call sub.MSVBVM60.DLL___vbaI2I4
mov word [ebp - 0xd8], ax
mov word [ebp - 0xd4], 1
mov word [ebp - 0x24], 1
jmp 0x52b616
mov ax, word [ebp - 0x24]
add ax, word [ebp - 0xd4]
jo 0x52b819
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
cmp ax, word [ebp - 0xd8]
jg 0x52b6f3
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 0xc]
dec eax
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0x2710
jae 0x52b653
and dword [ebp - 0xf4], 0
jmp 0x52b65e
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xf4], eax
movsx eax, word [ebp - 0x24]
push eax
mov eax, dword [ebp - 0xc8]
imul eax, eax, 0x30c
mov ecx, dword [0x571a90]
push dword [ecx + eax + 0x308]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov eax, dword [eax]
cmp eax, dword [ebp + 8]
jne 0x52b6e7
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 0xc]
dec eax
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0x2710
jae 0x52b6b4
and dword [ebp - 0xf8], 0
jmp 0x52b6bf
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xf8], eax
movsx eax, word [ebp - 0x24]
push eax
mov eax, dword [ebp - 0xc8]
imul eax, eax, 0x30c
mov ecx, dword [0x571a90]
push dword [ecx + eax + 0x308]
call sub.MSVBVM60.DLL___vbaDerefAry1
and dword [eax], 0
jmp 0x52b6f3
mov dword [ebp - 4], 0xd
jmp 0x52b601
mov dword [ebp - 4], 0x10
and dword [ebp - 0xd0], 0
lea eax, [ebp - 0xcc]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
mov dword [ebp - 4], 0x11
lea eax, [ebp - 0xc4]
push eax
push dword [ebp + 8]
push dword [0x571ec0]
call sub.MSVBVM60.DLL___vbaDerefAry1
push eax
push 0x43de0c
call sub.MSVBVM60.DLL___vbaRecAssign
mov dword [ebp - 4], 0x12
mov eax, dword [ebp + 8]
cmp eax, dword [0x571ec8]
jne 0x52b7cf
mov dword [ebp - 4], 0x13
push dword [0x571ec8]
push dword [0x571ec0]
call sub.MSVBVM60.DLL___vbaDerefAry1
movsx eax, word [eax]
test eax, eax
jne 0x52b7a5
mov dword [ebp - 4], 0x14
mov eax, dword [0x571ec8]
sub eax, 1
jo 0x52b819
mov dword [0x571ec8], eax
mov dword [ebp - 4], 0x15
cmp dword [0x571ec8], 0
jne 0x52b7a3
mov dword [ebp - 4], 0x16
and dword [0x571ec4], 0
jmp 0x52b7e5
jmp 0x52b74a
mov dword [ebp - 4], 0x1a
push 1
push dword [0x571ec8]
push 1
push 0x43de0c
push 0x571ec0
push 0xa0
push 0
call sub.MSVBVM60.DLL___vbaRedimPreserve
add esp, 0x1c
mov dword [ebp - 4], 0x1c
mov eax, dword [0x571ec4]
sub eax, 1
jo 0x52b819
mov dword [0x571ec4], eax
push 0x52b808
lea eax, [ebp - 0xcc]
push eax
call sub.MSVBVM60.DLL___vbaAryUnlock
lea eax, [ebp - 0xc4]
push eax
push 0x43de0c
call sub.MSVBVM60.DLL___vbaRecDestruct
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow