Function at 0x518270
Capabilities:
Manipulate safe mode programs

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x414386
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4142b8
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
call fcn.0044cc94
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 0x38], eax
call esi
mov eax, dword [ebp - 0x38]
mov ebx, eax
cmp eax, edi
mov dword [ebp - 0x20], ebx
je 0x518629
mov eax, dword [0x51b5e8]
push eax
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
push 1
push eax
push ebx
call fcn.0044cda4
mov dword [ebp - 0x38], eax
call esi
mov eax, dword [ebp - 0x38]
cmp eax, edi
mov dword [ebp - 0x2c], eax
je 0x5185d2
push 1
push 1
push 1
lea ecx, [ebp - 0x1c]
push edi
push ecx
push 0x24
push edi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaRedim]
call edi
mov edx, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
add esp, 0x1c
lea eax, [ebp - 0x30]
push edx
push eax
call ebx
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x518354
cmp word [ecx], 1
jne 0x518354
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov esi, 1
sub esi, edx
cmp esi, eax
jb 0x51834c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x30]
lea eax, [esi + esi*8]
shl eax, 2
jmp 0x51835d
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0xc]
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x2c]
add ecx, eax
push 0x24
push ecx
push edx
call fcn.0044cdf0
mov dword [ebp - 0x38], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x5185c1
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
lea ecx, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0x4c]
test eax, eax
fnclex
jge 0x5183c2
push 0x4c
push 0x42681c
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov esi, dword [ebp - 0x38]
xor ecx, ecx
cmp esi, 0x7a
sete cl
neg ecx
mov esi, ecx
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
test si, si
je 0x518580
mov ecx, dword [ebp - 0x24]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
push 1
shr eax, 0x1f
add edx, eax
lea ecx, [ebp - 0x1c]
mov esi, edx
add esi, 1
jo 0x5186af
push esi
push 1
push 0
push ecx
push 0x24
push 0
call edi
mov edx, dword [ebp - 0x1c]
add esp, 0x1c
lea eax, [ebp - 0x30]
push edx
push eax
call ebx
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x518451
cmp word [ecx], 1
jne 0x518451
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edi, 1
sub edi, edx
cmp edi, eax
jb 0x518449
call ebx
mov ecx, dword [ebp - 0x30]
lea eax, [edi + edi*8]
shl eax, 2
jmp 0x518460
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x30]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
imul esi, esi, 0x24
mov ecx, dword [ecx + 0xc]
lea edx, [ebp - 0x24]
jo 0x5186af
push edx
mov edx, dword [ebp - 0x2c]
add ecx, eax
push esi
push ecx
push edx
call fcn.0044cdf0
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 0x38], eax
call edi
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x518546
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5184c8
cmp word [ecx], 1
jne 0x5184c8
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov esi, 1
sub esi, edx
cmp esi, eax
jb 0x5184c0
call ebx
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + esi*8]
shl eax, 2
jmp 0x5184cd
call ebx
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx + eax + 0x1c]
push edx
call fcn.0044cffc
mov dword [ebp - 0x38], eax
call edi
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcSpaceBstr]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x51852c
cmp word [ecx], 1
jne 0x51852c
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov esi, 1
sub esi, edx
cmp esi, eax
jb 0x518524
call ebx
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + esi*8]
shl eax, 2
jmp 0x518531
call ebx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + eax + 0x1c]
push eax
push ecx
call fcn.0044cfc8
call edi
jmp 0x5185c1
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
lea edx, [ebp - 0x34]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov esi, eax
lea ecx, [ebp - 0x38]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x4c]
test eax, eax
fnclex
jge 0x518578
push 0x4c
push 0x42681c
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x18], edx
jmp 0x5185b8
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov esi, eax
lea edx, [ebp - 0x38]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0x4c]
test eax, eax
fnclex
jge 0x5185b2
push 0x4c
push 0x42681c
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0044cd70
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x518613
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
lea edx, [ebp - 0x34]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov esi, eax
lea ecx, [ebp - 0x38]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x4c]
cmp eax, edi
fnclex
jge 0x518604
push 0x4c
push 0x42681c
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], edx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, dword [ebp - 0x20]
push eax
call fcn.0044cd70
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x51869b
jmp 0x518685
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
lea ecx, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0x4c]
cmp eax, edi
fnclex
jge 0x51865b
push 0x4c
push 0x42681c
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
push 0x51869b
jmp 0x518685
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop