Function at 0x51eb90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x402cc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401a30
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xc0], edi
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
mov dword [ebp - 0xa4], 0x4093cc
mov esi, 8
mov dword [ebp - 0xac], esi
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x7c]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcEnvironVar]
mov dword [ebp - 0xb4], 0x40b158
mov dword [ebp - 0xbc], esi
push edi
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x8c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcDir]
mov edx, eax
lea ecx, [ebp - 0x24]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
call ebx
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x10
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x24]
push edx
push 0x409260
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
je 0x51f0b0
mov dword [ebp - 4], 5
lea eax, [ebp - 0x24]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xac], 0x4008
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
sub eax, 4
jo 0x51f146
push eax
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharVar]
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x24]
call ebx
lea ecx, [ebp - 0x6c]
call esi
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
movsx eax, word [0x536098]
mov dword [ebp - 0x100], eax
fild dword [ebp - 0x100]
fstp qword [ebp - 0x108]
fcomp qword [ebp - 0x108]
fnstsw ax
test ah, 0x41
je 0x51ed76
mov edi, 1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fild dword [0x536080]
fstp qword [ebp - 0x110]
fcomp qword [ebp - 0x110]
fnstsw ax
test ah, 0x41
je 0x51eda6
mov eax, 1
jmp 0x51eda8
xor eax, eax
or edi, eax
jne 0x51edc9
mov dword [ebp - 4], 7
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
mov word [0x536098], ax
mov dword [ebp - 4], 8
mov dword [ebp - 0x64], 0x80020004
mov dword [ebp - 0x6c], 0xa
push 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcDir]
mov edx, eax
lea ecx, [ebp - 0x24]
call ebx
lea ecx, [ebp - 0x6c]
call esi
xor edi, edi
jmp 0x51ecc1
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
wait
push 0x51f135
jmp 0x51f12b
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop