Function at 0x409bd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52358c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x48], edi
call fcn.0040eaf0
xor eax, eax
mov word [ebp - 0x9c], ax
mov ebx, 7
push edi
mov eax, 0x528928
lea esi, [ebp - 0x9c]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
call fcn.00412b10
mov dword [ebp - 4], 1
xor ecx, ecx
push 0x11
mov eax, str.SELECT_A.ID_AS_Id
lea esi, [ebp - 0x28]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], cx
call fcn.00412b10
mov byte [ebp - 4], 2
push 0x572c10
lea edx, [ebp - 0x44]
push 0x528e5c
push edx
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 3
push str._AS_ComputerId
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 4
push edi
push eax
or eax, 0xffffffff
call fcn.00412830
mov byte [ebp - 4], 3
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x409ca1
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], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x30], esi
jb 0x409cc3
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov word [ebp - 0x44], cx
push 0x39
mov eax, str.__Date__AS_OeDate_INFO_AS_OeSeverety_FILE_AS_Category
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
call fcn.00412930
push 0x5d
mov eax, str._USB_File____SELECT_Type_FROM_UT_FILE_ACTIVITY_TYPE_WHERE_ID__A.ActivityType__AS_OeEvent
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x15
mov eax, str._TargetPath_AS_OeItem
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x50
mov eax, str._ifnull__SELECT_KeyValue_FROM_UT_1120_WHERE_DictionaryId__A.UsbId_____AS_OeId
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x18
mov eax, str._SourcePath_AS_OeDetails
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x14
mov eax, str._TAmnunOE_OeSource
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x52
mov eax, str._ifnull__SELECT_NameValue_FROM_UT_1113_WHERE_DictionaryId__UserId_____AS_OeUser
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0xf
mov eax, str._FROM_UT_1102_A
lea ecx, [ebp - 0x28]
call fcn.00412930
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 1
push edx
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.004f2070
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x64]
push edx
mov edx, 0x529e80
call fcn.00413910
mov byte [ebp - 4], 6
push 0x529e7c
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004139a0
add esp, 0x24
mov byte [ebp - 4], bl
push edi
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x28]
call fcn.00412830
mov byte [ebp - 4], 6
mov esi, 8
cmp dword [ebp - 0x30], esi
jb 0x409dae
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], dx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x50], esi
jb 0x409dd0
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 dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x6c], esi
jb 0x409df2
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov word [ebp - 0x80], ax
push 6
mov eax, str._UNION
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], edi
call fcn.00412930
push 0x12
mov eax, str._SELECT_A.ID_AS_Id
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x572c10
lea ecx, [ebp - 0x44]
push 0x528e5c
push ecx
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 8
push str._AS_ComputerId
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 9
push edi
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x28]
call fcn.00412830
mov byte [ebp - 4], 8
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0x409e74
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], ebx
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], cx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x30], esi
jb 0x409e96
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov word [ebp - 0x44], ax
push 0x11
mov eax, str.__Date__AS_OeDate
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
call fcn.00412930
push 0x18
mov eax, str._WARNING_AS_OeSeverety
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x15
mov eax, str._DEVICE_AS_Category
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x91
mov eax, str.__SELECT_Type_FROM_UT_USB_TYPE_WHERE_ID__A.DeviceType____Device____SELECT_Type_FROM_UT_USB_ACTION_TYPE_WHERE_ID__A.ActionType__AS_OeEvent
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x51
mov eax, str._ifnull__SELECT_Details_FROM_UT_1120_WHERE_DictionaryId__A.UsbId_____AS_OeItem
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x50
mov eax, str._ifnull__SELECT_KeyValue_FROM_UT_1120_WHERE_DictionaryId__A.UsbId_____AS_OeId
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x12
mov eax, str._null_AS_OeDetails
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x14
mov eax, str._TAmnunOE_OeSource
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0x52
mov eax, str._ifnull__SELECT_NameValue_FROM_UT_1113_WHERE_DictionaryId__UserId_____AS_OeUser
lea ecx, [ebp - 0x28]
call fcn.00412930
push 0xf
mov eax, str._FROM_UT_1101_A
lea ecx, [ebp - 0x28]
call fcn.00412930
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 1
push ecx
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.004f2070
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, 0x529e80
call fcn.00413910
mov byte [ebp - 4], 0xb
push 0x529e7c
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.004139a0
add esp, 0x24
mov byte [ebp - 4], 0xc
push edi
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x28]
call fcn.00412830
mov byte [ebp - 4], 0xb
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0x409fa3
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], ebx
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], cx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x30], esi
jb 0x409fc5
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], esi
jb 0x409fe7
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x9c]
push ecx
xor edx, edx
push 0x1579c5c
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
call fcn.004ec1a0
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
test eax, eax
jne 0x40a09a
xor edx, edx
push edi
mov eax, 0x528928
mov word [esi], dx
call fcn.00412b10
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x40a048
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], cx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x88], 8
jb 0x40a070
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], ax
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 ecx, ecx
lea edi, [ebp - 0x9c]
mov word [esi], cx
call fcn.00411aa0
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
mov esi, 8
cmp dword [ebp - 0x14], esi
jb 0x40a0cc
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
xor edi, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x88], esi
jb 0x40a0f5
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x8c], edi
pop edi
mov dword [ebp - 0x88], ebx
xor edx, edx
mov word [ebp - 0x9c], dx
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc