Function at 0x512ab0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x414386
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x19c
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x413aa0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x118]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x150]
mov dword [ecx], 0xc
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x150]
mov dword [edx + 8], 1
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x150]
mov dword [eax + 4], 0
mov dword [ebp - 4], 7
mov dword [ebp - 0x150], 0
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], 9
mov edx, dword [ebp - 0x154]
mov dword [edx], 0x44
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0xb
call fcn.00514460
mov dword [ebp - 0xb4], eax
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [0x51b108]
mov edx, dword [ecx]
mov eax, dword [0x51b108]
push eax
call dword [edx + 0x18c]
fnclex
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jge 0x512c11
push 0x18c
push 0x42653c
mov ecx, dword [0x51b108]
push ecx
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x1b4], eax
jmp 0x512c1b
mov dword [ebp - 0x1b4], 0
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x130], 0
mov edx, dword [ebp - 0x1b0]
lea ecx, [ebp - 0x74]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
call fcn.00431420
mov dword [ebp - 0x13c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0xe
call fcn.005131c0
mov dword [ebp - 0xc4], eax
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x8c], 0x430
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x114], 0x44
mov dword [ebp - 4], 0x11
mov edx, 0x44d43c
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0xc4]
push ecx
push 0
push 0x2000000
call fcn.00420a28
mov dword [ebp - 0x13c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x70], edx
mov dword [ebp - 4], 0x13
lea eax, [ebp - 0x12c]
push eax
push 0x201eb
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.0044d12c
mov dword [ebp - 0x13c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x90], edx
mov dword [ebp - 4], 0x14
push 0
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0xbc]
push eax
push 0x41dbfc
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x130]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.004207d4
mov dword [ebp - 0x13c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x90], ecx
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x130]
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
mov dword [ebp - 4], 0x15
mov dword [ebp - 0xb0], 1
mov dword [ebp - 4], 0x16
mov dword [ebp - 0x14c], 0
cmp dword [ebp - 0x14c], 2
jae 0x512deb
mov dword [ebp - 0x1b8], 0
jmp 0x512df7
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x1b8], eax
lea edx, [ebp - 0xbc]
push edx
mov eax, dword [ebp - 0x14c]
imul eax, eax, 0xc
lea ecx, [ebp + eax - 0xac]
push ecx
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0x17
mov dword [ebp - 0x14c], 0
cmp dword [ebp - 0x14c], 2
jae 0x512e3d
mov dword [ebp - 0x1bc], 0
jmp 0x512e49
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x1bc], eax
mov edx, dword [ebp - 0x14c]
imul edx, edx, 0xc
mov dword [ebp + edx - 0xa4], 2
mov dword [ebp - 4], 0x18
push 0
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x94]
push ecx
push 1
push 1
lea edx, [ebp - 0x13c]
push edx
push 0x2000000
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0044d298
mov dword [ebp - 0x140], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 4], 0x19
mov dword [ebp - 0x13c], 0xc
push 4
lea edx, [ebp - 0xb4]
push edx
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.0043102c
mov dword [ebp - 0x140], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x90], edx
mov dword [ebp - 4], 0x1a
push 0
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x140], eax
push 0
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
push eax
mov eax, dword [ebp - 0x140]
push eax
push 0x1c
lea ecx, [ebp - 0xb0]
push ecx
push 0
mov edx, dword [ebp - 0x94]
push edx
call fcn.00420824
mov dword [ebp - 0x13c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0x1b
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x94]
push ecx
lea edx, [ebp - 0xc0]
push edx
call fcn.00431384
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x1c
mov dword [ebp - 0x6c], 1
mov dword [ebp - 4], 0x1d
push 0
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov dword [ebp - 0x148], eax
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x198]
push ecx
push 0x44d09c
call dword [sym.imp.MSVBVM60.DLL___vbaRecUniToAnsi]
push eax
mov edx, dword [ebp - 0x148]
push edx
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
push 1
lea edx, [ebp - 0xd0]
push edx
lea eax, [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x94]
push eax
call fcn.004314c8
mov dword [ebp - 0x13c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea ecx, [ebp - 0x198]
push ecx
lea edx, [ebp - 0x64]
push edx
push 0x44d09c
call dword [sym.imp.MSVBVM60.DLL___vbaRecAnsiToUni]
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x198]
push ecx
push 0x44d09c
call dword [sym.imp.MSVBVM60.DLL___vbaRecDestructAnsi]
mov dword [ebp - 4], 0x1e
cmp word [ebp + 0xc], 0xffff
jne 0x5130bc
mov dword [ebp - 4], 0x1f
push 0xffffffffffffffff
mov edx, dword [ebp - 0x88]
push edx
call fcn.0044d368
mov dword [ebp - 0x13c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0x20
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.0044d39c
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x21
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 0x23
mov ecx, dword [ebp - 0xc0]
push ecx
call fcn.004313d4
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x24
mov edx, dword [ebp - 0x70]
push edx
call fcn.0044c8a4
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x25
mov eax, dword [ebp - 0x68]
push eax
call fcn.0044c8a4
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x26
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.0044c8a4
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x27
mov edx, dword [ebp - 0x12c]
push edx
call fcn.0044c8a4
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x5131a4
jmp 0x51315b
lea eax, [ebp - 0x198]
push eax
push 0x44d09c
call dword [sym.imp.MSVBVM60.DLL___vbaRecDestructAnsi]
lea ecx, [ebp - 0x64]
push ecx
push 0x44d09c
call dword [sym.imp.MSVBVM60.DLL___vbaRecDestruct]
lea ecx, [ebp - 0x74]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea edx, [ebp - 0x114]
push edx
push 0x44d09c
call dword [sym.imp.MSVBVM60.DLL___vbaRecDestruct]
lea ecx, [ebp - 0x118]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret