Function at 0x470c40
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, 0x7c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403358
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.00471370
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], 2
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
push 0x4ee9bc
mov word [0x4ee9d4], bx
mov word [0x4ee998], bx
call fcn.00470420
mov eax, dword [0x4ee9bc]
mov ecx, dword [0x4ee9c0]
push 0x4ee9c4
mov dword [0x4ee9b4], eax
mov dword [0x4ee9b8], ecx
call fcn.004baa30
mov edx, dword [0x4ee9c4]
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [0x4ee9b0], edx
mov edx, 0x4124f4
call esi
push 0x4ee9c8
call fcn.0046fa60
mov edx, dword [0x4ee9c8]
mov ecx, 0x4ee9ac
call esi
mov edx, 0x41bf58
lea ecx, [ebp - 0x24]
call esi
push 0x4ee99c
lea eax, [ebp - 0x24]
push 0x4ee9a8
push eax
call fcn.00471630
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
push 0x4ee348
call fcn.0045bc90
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
mov edx, 0x41a774
lea ecx, [ebp - 0x28]
call esi
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push 0x4eea20
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], ebx
call edi
lea edx, [ebp - 0x48]
push eax
push edx
call fcn.00449240
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaDateVar]
fstp qword [0x4ee9a0]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
push edx
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov ecx, dword [0x4ee9ac]
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
push ecx
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 ebx, eax
lea edx, [ebp - 0x28]
neg ebx
sbb ebx, ebx
lea eax, [ebp - 0x24]
push edx
inc ebx
push eax
push 2
neg ebx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
test bx, bx
je 0x470e01
mov edx, 0x4124f4
jmp 0x471238
push 0x4ee348
call fcn.0045e380
mov cx, word [0x4ee348]
push 0x4ee9cc
push 0x41c464
push ecx
call fcn.0045bbc0
test ax, ax
jne 0x470f55
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push 0x4ee9cc
push 2
lea edx, [ebp - 0x2c]
push 0x4124ec
push edx
call ebx
push eax
lea eax, [ebp - 0x28]
push 0x41c464
push eax
call ebx
push eax
lea ecx, [ebp - 0x24]
push 0x41c478
push ecx
call ebx
mov dx, word [0x4ee348]
push eax
push edx
call fcn.00419698
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 0x5c], eax
call ebx
mov edx, 0x41c478
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x64], 3
call esi
mov edx, 0x4124ec
lea ecx, [ebp - 0x30]
call esi
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x30]
push edx
push eax
lea ecx, [ebp - 0x60]
push 0x4ee348
push ecx
call fcn.0045e0e0
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov word [0x4ee998], ax
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x18
mov edx, 0x41c4f4
mov ecx, 0x4ee078
call esi
mov ecx, dword [0x4ee078]
push ecx
push 0x41c59c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
mov ecx, 0x4ee078
call edi
mov edx, dword [0x4ee078]
lea eax, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
mov cx, word [0x4ee9cc]
push eax
push ecx
call fcn.00419830
mov dword [ebp - 0x5c], eax
call ebx
mov edx, dword [ebp - 0x24]
push edx
push 0x4ee078
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov ax, word [ebp - 0x5c]
lea ecx, [ebp - 0x24]
mov word [0x4ee998], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call fcn.00471550
call fcn.004715a0
jmp 0x470f5b
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [0x4ee9b8]
mov edx, dword [0x4ee9b4]
mov ax, word [0x4ee9cc]
push 0
push ecx
push edx
push 1
push eax
call fcn.0045b8a0
mov ecx, dword [0x4ee9b0]
mov dx, word [0x4ee9cc]
push 0
push ecx
push 2
push edx
mov word [0x4ee998], ax
call fcn.0041a11c
mov dword [ebp - 0x5c], eax
call ebx
mov ax, word [ebp - 0x5c]
mov word [0x4ee998], ax
mov cx, word [0x4ee9cc]
push ecx
call fcn.0041a3b8
mov dword [ebp - 0x5c], eax
call ebx
mov edx, 0x41c478
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 3
call esi
mov edx, 0x4124ec
lea ecx, [ebp - 0x24]
call esi
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x60], edx
lea ecx, [ebp - 0x64]
push eax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
lea ecx, [ebp - 0x60]
push 0x4ee348
push ecx
call fcn.0045e160
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov word [0x4ee998], ax
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp word [0x4ee320], 0
jne 0x470fa6
movsx ecx, word [0x4ee998]
mov dword [0x4ee9d0], ecx
call fcn.00471440
cmp dword [0x4ee9d0], 0x65
je 0x4710a7
mov edx, dword [0x4eea18]
push 0x4ee9d6
push 0x20
mov dword [0x4ee988], edx
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 - 0x70]
push eax
push 0x4ee9d6
push 0x20
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
mov dword [0x4ee98c], ecx
lea ecx, [ebp - 0x24]
mov dword [0x4ee990], edx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ecx, dword [ebp + 8]
mov edx, 0x41b270
call esi
mov ax, word [0x4ee9cc]
push eax
call fcn.0041a240
mov dword [ebp - 0x5c], eax
call ebx
mov edx, 0x41c478
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x64], 3
call esi
mov edx, 0x4124ec
lea ecx, [ebp - 0x24]
call esi
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x64]
mov dword [ebp - 0x60], ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
lea edx, [ebp - 0x60]
push 0x4ee348
push edx
call fcn.0045e0e0
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov word [0x4ee998], ax
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x24]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
fld qword [0x4ee9a0]
fcomp qword [0x4ee9b4]
add esp, 0xc
mov dword [ebp - 0x8c], 1
fnstsw ax
test ah, 0x40
je 0x47113b
mov dword [ebp - 0x8c], 0
mov edx, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
mov eax, dword [edx]
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
push eax
push 0x4124f4
call ebx
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov ecx, dword [0x4ee9a8]
mov ebx, eax
neg ebx
sbb ebx, ebx
push ecx
inc ebx
neg ebx
call dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
push eax
push 0x41b270
call dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x30]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
neg eax
sbb eax, eax
lea edx, [ebp - 0x30]
inc eax
push edx
neg eax
and ebx, eax
mov eax, dword [ebp - 0x8c]
neg eax
and ebx, eax
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x14
test bx, bx
je 0x47123d
mov eax, dword [0x4ee99c]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcTrimBstr]
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
push eax
push 0x41c5e0
call ebx
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov edi, eax
lea ecx, [ebp - 0x2c]
neg edi
lea edx, [ebp - 0x28]
push ecx
sbb edi, edi
lea eax, [ebp - 0x24]
push edx
inc edi
push eax
push 3
neg edi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
mov edx, 0x41c5f4
test di, di
jne 0x471238
mov edx, 0x41c5fc
mov ecx, dword [ebp + 8]
call esi
mov eax, dword [0x4f5b70]
test eax, eax
jne 0x471256
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 - 0x58], ecx
mov eax, 1
mov dword [edi], ecx
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov edx, dword [esi]
mov dword [edi + 4], ecx
push esi
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0xc], eax
call dword [edx + 0x44]
test eax, eax
fnclex
jge 0x4712a1
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x44
push 0x417cf8
push esi
push eax
call edi
jmp 0x4712a7
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [0x4f5aac]
test eax, eax
jne 0x4712c0
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 0x4712e1
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 0x471305
push 0x7c
push 0x415584
push esi
push eax
call edi
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
wait
push 0x471352
jmp 0x471348
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
ret