Function at 0x530f80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x402556
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x401718
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x20], 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 - 0x50], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xa0], edi
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov edx, 0x40b6f0
lea ecx, [ebp - 0x28]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
call esi
mov edx, 0x410cc8
lea ecx, [ebp - 0x24]
call esi
cmp word [0x587068], di
jl 0x53108a
mov eax, dword [ebp - 0x24]
push eax
push 0x410d40
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
call ebx
mov edx, eax
lea ecx, [ebp - 0x30]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
call esi
push eax
mov cx, word [0x587068]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x34]
call esi
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x38]
call esi
push eax
push 0x4101a4
call ebx
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
jmp 0x531096
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, dword [ebp - 0x24]
push edx
push 0x410d78
call ebx
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call ebx
mov edx, eax
lea ecx, [ebp - 0x34]
call esi
push eax
push 0x4101a4
call ebx
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
push 0x410da8
call ebx
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
cmp dword [0x587050], edi
jne 0x531104
push 0x587050
push 0x40c61c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x587050]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0xa0], 3
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0x98], edi
mov edx, dword [esi]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x94]
push ecx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x24]
push ecx
push esi
call dword [edx + 0xdc]
fnclex
cmp eax, edi
jge 0x531173
push 0xdc
push 0x40c4f0
push esi
push eax
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
call edi
jmp 0x531179
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push 0x40be58
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x98]
push edx
push eax
call dword [ecx + 0xdc]
fnclex
test eax, eax
jge 0x5311c6
push 0xdc
push 0x40c6fc
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
call edi
cmp dword [ebp - 0x98], 1
jne 0x53147e
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
lea ecx, [ebp - 0x94]
push ecx
push eax
call dword [edx + 0x50]
fnclex
test eax, eax
jge 0x5311f7
push 0x50
push 0x40c6fc
mov edx, dword [ebp - 0x2c]
push edx
push eax
call edi
cmp word [ebp - 0x94], 0
jne 0x53147e
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x94]
push edx
push eax
call dword [ecx + 0x50]
fnclex
test eax, eax
jge 0x531229
push 0x50
push 0x40c6fc
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
call edi
cmp word [ebp - 0x94], 0
jne 0x53147e
lea edx, [ebp - 0x20]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x80], 0x4008
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcTrimVar]
mov dword [ebp - 0x88], 0x40b6f0
mov dword [ebp - 0x90], 0x8008
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstNe]
mov si, ax
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
test si, si
je 0x531386
mov ecx, dword [ebp - 0x20]
push ecx
push 0x40d9c4
call ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], 8
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [edx + 0x54]
fnclex
test eax, eax
jge 0x5312c2
push 0x54
push 0x40c6fc
mov edx, dword [ebp - 0x2c]
push edx
push eax
call edi
mov eax, dword [ebp - 0x3c]
mov esi, eax
mov ecx, 0x410ddc
mov dword [ebp - 0x78], ecx
mov edx, 8
mov dword [ebp - 0x80], edx
mov edi, dword [eax]
lea ebx, [ebp - 0x40]
push ebx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], edx
mov edx, dword [ebp - 0x7c]
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x74]
mov dword [ebx + 0xc], ecx
push eax
call dword [edi + 0x28]
fnclex
test eax, eax
jge 0x531310
push 0x28
push 0x40c900
push esi
push eax
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
call edi
jmp 0x531316
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x40]
mov esi, eax
mov edx, dword [eax]
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [edx + 0x34]
fnclex
test eax, eax
jge 0x531336
push 0x34
push 0x40c910
push esi
push eax
call edi
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x3c]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x60]
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x1c
jmp 0x53144c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [ecx + 0x54]
fnclex
test eax, eax
jge 0x5313a7
push 0x54
push 0x40c6fc
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
call edi
mov eax, dword [ebp - 0x3c]
mov esi, eax
mov ecx, 0x410ddc
mov dword [ebp - 0x78], ecx
mov edx, 8
mov dword [ebp - 0x80], edx
mov edi, dword [eax]
lea ebx, [ebp - 0x40]
push ebx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], edx
mov edx, dword [ebp - 0x7c]
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x74]
mov dword [ebx + 0xc], ecx
push eax
call dword [edi + 0x28]
fnclex
test eax, eax
jge 0x5313f5
push 0x28
push 0x40c900
push esi
push eax
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
call edi
jmp 0x5313fb
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x40]
mov esi, eax
mov edx, dword [eax]
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [edx + 0x34]
fnclex
test eax, eax
jge 0x53141b
push 0x34
push 0x40c910
push esi
push eax
call edi
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
push eax
call dword [edx + _CIatan]
fnclex
test eax, eax
jge 0x531205
push _CIatan
push 0x40c6fc
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
call edi
jmp 0x531205
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
call dword [fcn.004010b4]
push 0x53157a
jmp 0x531560
lea ecx, [ebp - 0x20]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call esi
lea ecx, [ebp - 0x24]
call esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret