Function at 0x4da070
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x404486
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x402b68
xor eax, eax
mov edi, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov esi, 2
mov dword [ebp - 0x48], edi
mov ecx, dword [eax]
mov dword [ebp - 0x50], esi
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x60]
push edx
lea ecx, [ebp - 0x70]
push eax
lea edx, [ebp - 0x94]
push ecx
lea eax, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
mov dword [ebp - 0x60], 3
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x70], esi
call dword [sym.imp.MSVBVM60.DLL___vbaVarForInit]
mov esi, dword [fcn.0040134c]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
test eax, eax
je 0x4da2c0
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x24]
push edx
push eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x40], 2
call edi
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharBstr]
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcAnsiValueBstr]
xor ecx, ecx
cmp ax, 0x80
setl cl
neg ecx
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x30]
call ebx
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
cmp word [ebp - 0x74], 0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x40], 2
je 0x4da1b8
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x24]
push edx
push eax
call edi
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharBstr]
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcAnsiValueBstr]
add ax, 0x80
jmp 0x4da237
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x24]
push eax
push ecx
call edi
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharBstr]
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcAnsiValueBstr]
xor ecx, ecx
cmp ax, 0x80
setg cl
neg ecx
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x30]
call ebx
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
cmp word [ebp - 0x74], 0
je 0x4da259
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x24]
push edx
push eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x40], 2
call edi
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharBstr]
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcAnsiValueBstr]
sub ax, 0x80
jo 0x4da339
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x2c]
call esi
lea ecx, [ebp - 0x30]
call ebx
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Str]
lea ecx, [ebp - 0x40]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push edx
push eax
call edi
push eax
lea ecx, [ebp - 0x40]
push 1
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
push 0
call dword [0x401394]
lea ecx, [ebp - 0x30]
call ebx
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea edx, [ebp - 0x94]
lea eax, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarForNext]
jmp 0x4da121
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edx, dword [edx]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x4da323
jmp 0x4da2f7
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x84]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop