Function at 0x51f150
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402cc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401a80
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarg]
xor edi, edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x30], 0x80020004
mov dword [ebp - 0x38], 0xa
call esi
mov eax, dword [0x536064]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
push 0xffffffffffffffff
push edx
push 0x40afb4
push eax
call dword [ecx + 0x40]
cmp eax, edi
fnclex
jge 0x51f214
mov ecx, dword [0x536064]
push 0x40
push 0x409744
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x38]
call ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], 0x80020004
mov dword [ebp - 0x38], 0xa
call esi
mov eax, dword [0x536064]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x38]
mov edx, dword [eax]
push 0xffffffffffffffff
push ecx
push 0x40b1a4
push eax
call dword [edx + 0x40]
cmp eax, edi
fnclex
jge 0x51f270
mov edx, dword [0x536064]
push 0x40
push 0x409744
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x24]
push 0x409474
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
lea ecx, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x38]
call ebx
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x11c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
cmp eax, edi
fnclex
jge 0x51f2c0
mov edx, dword [ebp - 0x14]
push 0x50
push 0x409664
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp word [ebp - 0x11c], di
je 0x51f329
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], 0x80020004
mov dword [ebp - 0x38], 0xa
call esi
mov eax, dword [0x536064]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
push 0xffffffffffffffff
push edx
push 0x40b398
push eax
call dword [ecx + 0x40]
cmp eax, edi
fnclex
jge 0x51f311
mov ecx, dword [0x536064]
push 0x40
push 0x409744
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x38]
call ebx
mov esi, 1
jmp 0x51f3f0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x54]
cmp eax, edi
fnclex
jge 0x51f34e
mov edx, dword [ebp - 0x14]
push 0x54
push 0x409664
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea ebx, [ebp - 0x28]
mov eax, dword [ebp - 0x24]
push ebx
mov edx, 8
sub esp, 0x10
mov esi, dword [eax]
mov ebx, esp
mov ecx, 0x40b3f0
push eax
mov dword [ebp - 0x124], eax
mov dword [ebx], edx
mov edx, dword [ebp - 0xb4]
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0xac]
mov dword [ebx + 0xc], ecx
call dword [esi + 0x28]
cmp eax, edi
fnclex
jge 0x51f3a2
mov edx, dword [ebp - 0x124]
push 0x28
push 0x409724
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
push edx
push eax
mov ecx, dword [eax]
mov esi, eax
call dword [ecx + 0x34]
cmp eax, edi
fnclex
jge 0x51f3c6
push 0x34
push 0x409734
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
push ecx
push edx
push 2
mov esi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
add esp, 0xc
lea ecx, [ebp - 0x38]
call ebx
cmp word [0x53608c], di
je 0x51f407
mov dword [ebp - 0x20], edi
push 0x51f61d
wait
jmp 0x51f613
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, esi
jg 0x51f495
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], 0x80020004
mov dword [ebp - 0x38], 0xa
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarg]
mov eax, dword [0x536064]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
push 0xffffffffffffffff
push edx
push 0x40afb4
push eax
call dword [ecx + 0x40]
cmp eax, edi
fnclex
jge 0x51f460
mov ecx, dword [0x536064]
push 0x40
push 0x409744
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x38]
call ebx
mov edx, dword [0x536088]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
call dword [sym.imp.MSVBVM60.DLL___vbaFpR8]
fstp st(0)
mov dword [ebp - 0x20], 0xffffffff
push 0x51f61d
wait
jmp 0x51f613
mov ecx, esi
add ecx, 1
jo 0x51f634
cmp eax, ecx
jne 0x51f4b2
mov dword [ebp - 0x20], edi
push 0x51f61d
wait
jmp 0x51f613
mov edi, 8
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xc0], 0x40b444
mov dword [ebp - 0xc8], edi
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
push 1
lea edx, [ebp - 0x48]
push 1
lea eax, [ebp - 0x38]
add esi, 1
push edx
lea ecx, [ebp - 0x58]
push eax
jo 0x51f634
push ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], 3
call dword [sym.imp.MSVBVM60.DLL_rtcVarFromFormatVar]
mov eax, 0xa
mov ecx, 0x80020004
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x88], eax
lea edx, [ebp - 0xa8]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x80], ecx
lea eax, [ebp - 0x98]
push edx
lea ecx, [ebp - 0x88]
push eax
push ecx
lea edx, [ebp - 0xd8]
push 0x40
lea eax, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x68]
push eax
push ecx
mov dword [ebp - 0xd0], 0x40b400
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xe0], 0x40b458
mov dword [ebp - 0xe8], edi
call esi
push eax
lea edx, [ebp - 0xe8]
lea eax, [ebp - 0x78]
push edx
push eax
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcMsgBox]
lea ecx, [ebp - 0xa8]
lea edx, [ebp - 0x98]
push ecx
lea eax, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x78]
push eax
lea edx, [ebp - 0x68]
push ecx
lea eax, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x48]
push eax
lea edx, [ebp - 0x38]
push ecx
push edx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x24
call dword [sym.imp.MSVBVM60.DLL___vbaEnd]
wait
push 0x51f61d
jmp 0x51f613
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop