Function at 0x40a120
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520f24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor eax, eax
push edi
mov word [ebp - 0x48], ax
mov edi, 7
push ebx
mov eax, 0x528928
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
call fcn.00412b10
mov dword [ebp - 4], 1
xor ecx, ecx
push 0x88
mov eax, str.SELECT_ID_null_AS_PartitionID__Date__1___SELECT__strftime__s__Date_____strftime__s_1970_01_01_00:00___60____1440____15_AS_SliceId
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.00412b10
mov byte [ebp - 4], 2
push 0x572c10
lea edx, [ebp - 0x64]
push 0x528e5c
push edx
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 3
push str._AS_ComputerId_SourcePath_TargetPath
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 4
push ebx
push eax
or eax, 0xffffffff
call fcn.00412830
mov byte [ebp - 4], 3
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0x40a1e3
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], esi
jb 0x40a205
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov word [ebp - 0x64], cx
push 0x69
mov eax, str._ifnull__SELECT_NameValue_FROM_UT_1113_WHERE_DictionaryId__UserId_____AS_UserName_ActivityType_AS_Mode
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
call fcn.00412930
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 1
push edx
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.004f2070
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x80]
push edx
mov edx, str._FROM_UT_1104_WHERE_date___Date___
call fcn.00413910
mov byte [ebp - 4], 6
push 0x529e7c
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004139a0
add esp, 0x24
mov byte [ebp - 4], 7
push ebx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00412830
mov byte [ebp - 4], 6
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x40a28b
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x6c], esi
jb 0x40a2ad
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x88], esi
jb 0x40a2d5
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push ebx
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
xor eax, eax
push 0x1579c5c
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
call fcn.004ec1a0
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
test eax, eax
jne 0x40a379
mov word [esi], ax
push ebx
mov eax, 0x528928
call fcn.00412b10
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
jb 0x40a336
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], 8
jb 0x40a358
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor edx, edx
lea edi, [ebp - 0x48]
mov word [esi], dx
call fcn.00411aa0
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x40a3a8
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x40a3ce
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x34], edi
xor eax, eax
pop edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc