Function at 0x4baa30
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, 0x6c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403e60
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.004bb040
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]
mov ebx, dword [ebp + 8]
mov word [0x4ee6a0], si
mov word [0x4ee670], si
push 0xfe
mov dword [ebx], esi
call fcn.00449010
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
lea ecx, [ebp - 0x24]
mov word [0x4ee690], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [0x4ee690]
mov dword [ebp - 0x74], eax
fild dword [ebp - 0x74]
fstp qword [ebp - 0x7c]
fld qword [ebp - 0x7c]
cmp dword [section..data], 0
jne 0x4bab01
fdiv qword [0x402030]
jmp 0x4bab12
push dword [0x402034]
push dword [0x402030]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fnstsw ax
test al, 0xd
jne 0x4bb031
call dword [sym.imp.MSVBVM60.DLL___vbaR8FixI4]
cmp eax, esi
mov dword [ebx], eax
jne 0x4baf14
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x4271e8
lea ecx, [ebp - 0x24]
call esi
lea ecx, [ebp - 0x24]
push 0x4ee694
push ecx
call fcn.004ba340
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [0x4ee694]
mov ecx, 0x4ee68c
call esi
mov edx, dword [0x4ee68c]
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcRightTrimBstr]
push edx
call ebx
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
push eax
push 0x4271f8
call ebx
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov ebx, eax
lea eax, [ebp - 0x28]
neg ebx
sbb ebx, ebx
lea ecx, [ebp - 0x24]
push eax
inc ebx
push ecx
push 2
neg ebx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
test bx, bx
je 0x4babf8
mov edx, 0x427204
lea ecx, [ebp - 0x24]
call esi
lea edx, [ebp - 0x24]
push 0x4ee694
push edx
call fcn.004ba340
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [0x4ee694]
mov ecx, 0x4ee674
call esi
mov eax, dword [ebp + 8]
push 0x4ee688
push eax
push 0x4ee67c
push 0x4ee674
call fcn.004ba030
jmp 0x4baf12
push 0x4ee348
call fcn.0045e380
mov cx, word [0x4ee348]
push 0x4ee698
push 0x427218
push ecx
call fcn.0045bbc0
test ax, ax
jne 0x4bad3f
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push 0x4ee698
push 2
lea edx, [ebp - 0x2c]
push 0x4124ec
push edx
call ebx
push eax
lea eax, [ebp - 0x28]
push 0x427218
push eax
call ebx
push eax
lea ecx, [ebp - 0x24]
push 0x42722c
push ecx
call ebx
mov dx, word [0x4ee348]
push eax
push edx
call fcn.00419698
mov dword [ebp - 0x4c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, 0x42722c
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x54], 3
call esi
mov edx, 0x4124ec
lea ecx, [ebp - 0x30]
call esi
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x30]
push edx
push eax
lea ecx, [ebp - 0x50]
push 0x4ee348
push ecx
call fcn.0045e0e0
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov word [0x4ee670], 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, 0x427244
mov ecx, 0x4ee078
call esi
mov ecx, dword [0x4ee078]
push ecx
push 0x4272f0
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 ebx
mov cx, word [0x4ee698]
push eax
push ecx
call fcn.00419830
mov ebx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x24]
push edx
push 0x4ee078
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea ecx, [ebp - 0x24]
mov word [0x4ee670], bx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call fcn.004bb230
mov ax, word [0x4ee698]
push eax
call fcn.0041a3b8
mov ebx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, 0x42722c
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 ecx, [ebp - 0x58]
lea edx, [ebp - 0x54]
push ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
lea edx, [ebp - 0x50]
push 0x4ee348
push edx
mov dword [ebp - 0x50], ebx
call fcn.0045e160
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov word [0x4ee670], ax
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x24]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp word [0x4ee320], 0
jne 0x4bad3f
movsx edx, word [0x4ee670]
mov dword [0x4ee69c], edx
call fcn.004bb100
cmp dword [0x4ee69c], 0x65
je 0x4baea5
mov ax, word [0x4ee6a8]
mov ecx, dword [0x4ee6a4]
push 0x4ee6a2
push 1
mov word [0x4ee668], ax
mov dword [0x4ee660], ecx
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 0x4ee6a2
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaLsetFixstr]
mov edx, dword [ebp - 0x28]
mov ecx, 0x4ee664
mov dword [ebp - 0x28], 0
call edi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ecx, dword [ebp + 8]
mov eax, dword [0x4ee660]
mov dword [ecx], eax
mov edx, dword [0x4ee664]
push edx
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 eax, [ebp - 0x28]
neg edi
sbb edi, edi
lea ecx, [ebp - 0x24]
push eax
inc edi
push ecx
push 2
neg edi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
test di, di
je 0x4baea5
mov edx, dword [ebp + 8]
mov dword [edx], 0
mov ax, word [0x4ee698]
push eax
call fcn.0041a240
mov edi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, 0x42722c
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 [0x4ee670], 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
xor esi, esi
cmp dword [0x4f5b70], esi
jne 0x4baf2c
push 0x4f5b70
push 0x417d08
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
sub esp, 0x10
mov edi, dword [0x4f5b70]
mov ebx, esp
mov ecx, 3
mov dword [ebp - 0x48], ecx
mov eax, 1
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov edx, dword [edi]
mov dword [ebx + 4], ecx
push edi
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0xc], eax
call dword [edx + 0x44]
cmp eax, esi
fnclex
jge 0x4baf77
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x44
push 0x417cf8
push edi
push eax
call ebx
jmp 0x4baf7d
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp dword [0x4f5aac], esi
jne 0x4baf95
push 0x4f5aac
push 0x415574
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov edi, dword [0x4f5aac]
lea edx, [ebp - 0x38]
push edx
push edi
mov ecx, dword [edi]
call dword [ecx + 0x18]
cmp eax, esi
fnclex
jge 0x4bafb6
push 0x18
push 0x415564
push edi
push eax
call ebx
mov eax, dword [ebp - 0x38]
mov dx, word [0x4ee142]
push edx
push eax
mov ecx, dword [eax]
mov edi, eax
call dword [ecx + 0x7c]
cmp eax, esi
fnclex
jge 0x4bafda
push 0x7c
push 0x415584
push edi
push eax
call ebx
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
wait
push 0x4bb01e
jmp 0x4bb014
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
ret
jmp fcn.004055ac