Function at 0x470420
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4055a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403338
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], esi
call fcn.00470950
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], 2
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
push 0x4ee348
mov word [0x4ee6fc], si
mov word [0x4ee6d8], si
call fcn.0045e380
mov ax, word [0x4ee348]
push 0x4ee6f4
push 0x41c31c
push eax
call fcn.0045bbc0
test ax, ax
jne 0x4705e4
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push 0x4ee6f4
push 2
lea ecx, [ebp - 0x2c]
push 0x4124ec
push ecx
call ebx
push eax
lea edx, [ebp - 0x28]
push 0x41c31c
push edx
call ebx
push eax
lea eax, [ebp - 0x24]
push 0x41c334
push eax
call ebx
mov cx, word [0x4ee348]
push eax
push ecx
call fcn.00419698
mov edi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x41c334
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x54], 3
call esi
mov edx, 0x4124ec
lea ecx, [ebp - 0x30]
call esi
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x30]
push eax
push ecx
lea edx, [ebp - 0x50]
push 0x4ee348
push edx
mov dword [ebp - 0x50], edi
call fcn.0045e0e0
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov word [0x4ee6d8], ax
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x30]
push eax
lea edx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x18
mov edx, 0x41c350
mov ecx, 0x4ee078
call esi
mov edx, dword [0x4ee078]
push edx
push 0x41c3fc
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov ecx, 0x4ee078
call edi
mov eax, dword [0x4ee078]
lea ecx, [ebp - 0x24]
push eax
push ecx
call ebx
mov dx, word [0x4ee6f4]
push eax
push edx
call fcn.00419830
mov ebx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x24]
push eax
push 0x4ee078
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea ecx, [ebp - 0x24]
mov word [0x4ee6d8], bx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call fcn.00470b90
jmp 0x4705f0
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov cx, word [0x4ee6f4]
push ecx
call fcn.0041a3b8
mov ebx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, 0x41c334
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], 3
call esi
mov edx, 0x4124ec
lea ecx, [ebp - 0x24]
call esi
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
lea eax, [ebp - 0x50]
push 0x4ee348
push eax
mov dword [ebp - 0x50], ebx
call fcn.0045e160
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
push ecx
push edx
push 2
mov word [0x4ee6d8], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp word [0x4ee320], 0
jne 0x4705f0
movsx eax, word [0x4ee6d8]
mov dword [0x4ee6f8], eax
call fcn.00470a00
cmp dword [0x4ee6f8], 0x65
je 0x4707b7
mov cx, word [0x4ee740]
push 0x4ee73e
push 1
mov word [0x4ee6d0], cx
call dword [sym.imp.MSVBVM60.DLL___vbaStrFixstr]
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
mov edx, dword [ebp - 0x24]
push edx
push 0x4ee73e
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
mov edx, dword [ebp - 0x28]
mov ecx, 0x4ee6c4
mov dword [ebp - 0x28], 0
call edi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
push 0x4ee6fe
push 0x20
call dword [sym.imp.MSVBVM60.DLL___vbaStrFixstr]
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
push eax
call fcn.00450640
mov eax, dword [ebp - 0x24]
fstp qword [ebp - 0x60]
push eax
push 0x4ee6fe
push 0x20
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov dword [0x4ee6c8], ecx
lea ecx, [ebp - 0x24]
mov dword [0x4ee6cc], edx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [0x4ee6c4]
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
push eax
push 0x41b270
call ebx
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov edi, eax
lea ecx, [ebp - 0x28]
neg edi
sbb edi, edi
lea edx, [ebp - 0x24]
push ecx
inc edi
push edx
push 2
neg edi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
test di, di
je 0x4707a3
push 0x4ee6dc
push 0x4ee6e4
call fcn.004700b0
mov eax, dword [ebp + 8]
mov ecx, dword [0x4ee6e4]
mov dword [eax], ecx
mov edx, dword [0x4ee6e8]
jmp 0x4707b4
mov eax, dword [ebp + 8]
mov ecx, dword [0x4ee6c8]
mov dword [eax], ecx
mov edx, dword [0x4ee6cc]
mov dword [eax + 4], edx
mov ax, word [0x4ee6f4]
push eax
call fcn.0041a240
mov edi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, 0x41c334
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x54], 3
call esi
mov edx, 0x4124ec
lea ecx, [ebp - 0x24]
call esi
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
lea ecx, [ebp - 0x50]
push 0x4ee348
push ecx
mov dword [ebp - 0x50], edi
call fcn.0045e0e0
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov word [0x4ee6d8], ax
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
mov eax, dword [0x4f5b70]
add esp, 0xc
test eax, eax
jne 0x47083d
push 0x4f5b70
push 0x417d08
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
sub esp, 0x10
mov esi, dword [0x4f5b70]
mov edi, esp
mov ecx, 3
mov dword [ebp - 0x48], ecx
mov eax, 1
mov dword [edi], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov edx, dword [esi]
mov dword [edi + 4], ecx
push esi
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0xc], eax
call dword [edx + 0x44]
test eax, eax
fnclex
jge 0x470888
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x44
push 0x417cf8
push esi
push eax
call edi
jmp 0x47088e
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [0x4f5aac]
test eax, eax
jne 0x4708a7
push 0x4f5aac
push 0x415574
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x4f5aac]
lea edx, [ebp - 0x38]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0x18]
test eax, eax
fnclex
jge 0x4708c8
push 0x18
push 0x415564
push esi
push eax
call edi
mov eax, dword [ebp - 0x38]
mov dx, word [0x4ee142]
push edx
push eax
mov ecx, dword [eax]
mov esi, eax
call dword [ecx + 0x7c]
test eax, eax
fnclex
jge 0x4708ec
push 0x7c
push 0x415584
push esi
push eax
call edi
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
wait
push 0x470930
jmp 0x470926
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
ret