Function at 0x4c2260
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x404546
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x401560
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0x108], ebx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
cmp dword [0x5472c0], ebx
jne 0x4c231a
push 0x5472c0
push 0x41498c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x5472c0]
mov eax, dword [esi]
lea ecx, [ebp - 0x60]
push ecx
push esi
call dword [eax + 0x14]
fnclex
cmp eax, ebx
jge 0x4c2343
push 0x14
push 0x41497c
push esi
push eax
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
call edi
jmp 0x4c2349
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x60]
mov esi, eax
mov dword [ebp - 0x108], esi
mov edx, dword [eax]
lea ecx, [ebp - 0xf0]
push ecx
push eax
call dword [edx + 0xb8]
fnclex
cmp eax, ebx
jge 0x4c2378
push 0xb8
push 0x414f98
push esi
push eax
call edi
cmp dword [0x5472c0], ebx
jne 0x4c2390
push 0x5472c0
push 0x41498c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x5472c0]
mov edx, dword [esi]
lea eax, [ebp - 0x64]
push eax
push esi
call dword [edx + 0x14]
fnclex
cmp eax, ebx
jge 0x4c23b1
push 0x14
push 0x41497c
push esi
push eax
call edi
mov eax, dword [ebp - 0x64]
mov esi, eax
mov ecx, dword [eax]
lea edx, [ebp - 0xf4]
push edx
push eax
call dword [ecx + pe_nt_image_headers32]
fnclex
cmp eax, ebx
jge 0x4c23da
push pe_nt_image_headers32
push 0x414f98
push esi
push eax
call edi
cmp dword [0x5472c0], ebx
jne 0x4c23f2
push 0x5472c0
push 0x41498c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x5472c0]
mov eax, dword [esi]
lea ecx, [ebp - 0x68]
push ecx
push esi
call dword [eax + 0x14]
fnclex
cmp eax, ebx
jge 0x4c2413
push 0x14
push 0x41497c
push esi
push eax
call edi
mov eax, dword [ebp - 0x68]
mov esi, eax
mov edx, dword [eax]
lea ecx, [ebp - 0xf8]
push ecx
push eax
call dword [edx + 0xc8]
fnclex
cmp eax, ebx
jge 0x4c243c
push 0xc8
push 0x414f98
push esi
push eax
call edi
mov edx, dword [ebp - 0xf0]
push edx
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
call ebx
mov edx, eax
lea ecx, [ebp - 0x48]
mov esi, dword [reloc.MSVBVM60.DLL___vbaStrMove]
call esi
push eax
push 0x415090
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
call edi
mov edx, eax
lea ecx, [ebp - 0x4c]
call esi
push eax
mov eax, dword [ebp - 0xf4]
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x50]
call esi
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x54]
call esi
push eax
push 0x415090
call edi
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
push eax
mov ecx, dword [ebp - 0xf8]
push ecx
call ebx
mov edx, eax
lea ecx, [ebp - 0x5c]
call esi
push eax
call edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], 8
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x44]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
call edi
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 6
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0x2c
mov eax, dword [0x546014]
test eax, eax
jne 0x4c2513
push 0x546014
push 0x404f24
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov ebx, dword [0x546014]
mov edx, dword [ebx]
lea eax, [ebp - 0x60]
push eax
push ebx
call dword [edx + 0x28]
fnclex
test eax, eax
jge 0x4c2538
push 0x28
push 0x413e28
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x74], 0x80020004
mov dword [ebp - 0x7c], 0xa
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarg]
mov ecx, dword [ebx]
lea edx, [ebp - 0x64]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x7c]
push eax
push 0x415098
push ebx
call dword [ecx + 0x40]
fnclex
test eax, eax
jge 0x4c2582
push 0x40
push 0x414048
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x64]
mov ebx, eax
mov ecx, dword [eax]
lea edx, [ebp - 0x68]
push edx
push eax
call dword [ecx + 0x54]
fnclex
test eax, eax
jge 0x4c25a6
push 0x54
push 0x4140c0
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x118], eax
mov ecx, 2
mov edx, dword [eax]
lea ebx, [ebp - 0x6c]
push ebx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], ecx
mov ecx, dword [ebp - 0xc8]
mov dword [ebx + 4], ecx
xor ecx, ecx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0xc0]
mov dword [ebx + 0xc], ecx
push eax
call dword [edx + 0x28]
fnclex
test eax, eax
jge 0x4c25f7
push 0x28
push 0x4141c8
mov edx, dword [ebp - 0x118]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x6c]
mov ebx, eax
mov ecx, dword [eax]
lea edx, [ebp - 0x8c]
push edx
push eax
call dword [ecx + 0x34]
fnclex
test eax, eax
jge 0x4c261e
push 0x34
push 0x4141d8
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x30]
call edi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x60]
push eax
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0x14
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
push 0
push 0xffffffffffffffff
push 1
push 0x4149b0
push 0x415090
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x48]
push edx
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
call ebx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcReplace]
mov edx, eax
lea ecx, [ebp - 0x4c]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Str]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xbc], 3
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0x44]
call edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
push 0
push 0xffffffffffffffff
push 1
push 0x4149b0
push 0x415090
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x48]
push eax
call ebx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcReplace]
mov edx, eax
lea ecx, [ebp - 0x4c]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Str]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xbc], 3
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0x30]
call edi
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x48]
push edx
push 2
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
call ebx
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstLt]
test ax, ax
je 0x4c2816
call fcn.004153dc
mov dword [ebp - 0xfc], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [0x5472c0]
test eax, eax
jne 0x4c2750
push 0x5472c0
push 0x41498c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov edi, dword [0x5472c0]
mov edx, dword [edi]
lea eax, [ebp - 0x60]
push eax
push edi
call dword [edx + 0x14]
fnclex
test eax, eax
jge 0x4c2775
push 0x14
push 0x41497c
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x60]
mov edi, eax
mov dword [ebp - 0x108], edi
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x50]
fnclex
test eax, eax
jge 0x4c279f
push 0x50
push 0x414f98
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 5
push 0
push 0
mov eax, dword [ebp - 0x48]
push eax
push 0x415460
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x50]
call esi
push eax
lea ecx, [ebp - 0x54]
push ecx
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
call esi
push eax
push 0x415450
lea edx, [ebp - 0x4c]
push edx
call esi
push eax
mov eax, dword [ebp - 0xfc]
push eax
call fcn.00413d24
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 4
call ebx
add esp, 0x14
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
call dword [sym.imp.MSVBVM60.DLL___vbaEnd]
mov dword [ebp - 0x34], 0xffffffff
jmp 0x4c281d
mov dword [ebp - 0x34], 0
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov esi, eax
mov eax, dword [esi]
lea ecx, [ebp - 0xfc]
push ecx
push esi
call dword [eax + 0x1c]
fnclex
test eax, eax
jge 0x4c2852
push 0x1c
push 0x41499c
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
xor edx, edx
cmp dword [ebp - 0xfc], 0xbcd
sete dl
neg edx
mov esi, edx
mov dword [ebp - 0x108], esi
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
test si, si
je 0x4c291a
mov ecx, 0x80020004
mov dword [ebp - 0xa4], ecx
mov eax, 0xa
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xb4], 0x415488
mov dword [ebp - 0xbc], 8
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x8c]
push edx
push 0x40
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcMsgBox]
lea ecx, [ebp - 0xac]
push ecx
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x7c]
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
mov dword [ebp - 0x34], 0xffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x4c2995
jmp 0x4c2984
lea ecx, [ebp - 0x30]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
call esi
lea ecx, [ebp - 0x44]
call esi
ret