Function at 0x10001190
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xfffffffffffffffe
push 0x10185fc0
push 0x10132540
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10189710]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp + 0x218]
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp + 0x21c]
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 0x220]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
mov byte [ebp], 0
push 0x103
push 0
lea eax, [ebp + 1]
push eax
call fcn.1012e060
mov byte [ebp + 0x104], 0
push 0x103
push 0
lea ecx, [ebp + 0x105]
push ecx
call fcn.1012e060
add esp, 0x18
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x10001241
mov dword [edi], eax
cmp ebx, eax
jne 0x10001270
cmp esi, eax
jne 0x1000126c
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x1000125e
push str.Invalid_HostName_and_ip
push ecx
call fcn.10127dc0
add esp, 8
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10001519
cmp ebx, eax
je 0x10001294
cmp esi, eax
je 0x10001279
cmp byte [esi], 0
jne 0x10001294
mov ebx, 1
mov ecx, 0x1a
mov esi, str.SELECT_UserId_HostName_FROM_RAUserData_WHERE_HostName____COLLATE_NOCASE_order_by_updatetime_DESC_Limit_1_
lea edi, [ebp + 0x104]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x100012ee
cmp esi, eax
je 0x100012c5
cmp ebx, eax
je 0x100012a1
cmp byte [ebx], 0
jne 0x100012c5
mov ebx, 2
push esi
push str.___s___
lea edx, [ebp]
push edx
call fcn.10127dc0
lea ecx, [ebx + 0x15]
mov esi, str.SELECT_UserId_HostName_FROM_RAUserData_WHERE_IpList_Like___order_by_updatetime_DESC_Limit_1_
lea edi, [ebp + 0x104]
jmp 0x100012e9
mov ebx, 3
push esi
push str.___s___
lea eax, [ebp]
push eax
call fcn.10127dc0
mov ecx, 0x1f
mov esi, str.SELECT_UserId_HostName_FROM_RAUserData_WHERE_HostName____COLLATE_NOCASE_AND_IpList_Like___order_by_updatetime_DESC_Limit_1_
lea edi, [ebp + 0x104]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0xffffffffffffffff
lea edx, [ebp + 0x104]
push edx
mov edi, dword [ebp - 0x2c]
push edi
call fcn.100feee0
add esp, 0x14
test eax, eax
je 0x10001333
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x100014ff
push edi
call fcn.1011b860
push eax
push str.Failed_to_create_queryStmt___ErrMsg_:__s
push esi
call fcn.10127dc0
add esp, 0x10
jmp 0x100014ff
mov esi, dword [ebp - 0x1c]
cmp ebx, 1
jne 0x1000134f
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
push eax
push ebx
push esi
call fcn.100d4330
add esp, 0x14
jmp 0x10001391
cmp ebx, 2
jne 0x10001369
push 0
push 0xffffffffffffffff
lea ecx, [ebp]
push ecx
push 1
push esi
call fcn.100d4330
add esp, 0x14
jmp 0x10001391
cmp ebx, 3
jne 0x10001391
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
push edx
push 1
push esi
call fcn.100d4330
push 0
push 0xffffffffffffffff
lea eax, [ebp]
push eax
push 2
push esi
call fcn.100d4330
add esp, 0x28
push esi
call fcn.100d3830
add esp, 4
cmp eax, 0x65
jne 0x10001456
cmp ebx, 3
jne 0x10001411
push esi
call fcn.100d2cd0
mov dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0xffffffffffffffff
push str.SELECT_UserId_HostName_FROM_RAUserData_WHERE_HostName____COLLATE_NOCASE_order_by_updatetime_DESC_Limit_1_
push edi
call fcn.100feee0
add esp, 0x18
test eax, eax
je 0x100013f4
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x100014ff
push edi
call fcn.1011b860
push eax
push str.Failed_to_re_create_queryStmt_with_HostName___ErrMsg_:__s
push esi
call fcn.10127dc0
add esp, 0x10
jmp 0x100014ff
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
push edx
push 1
mov esi, dword [ebp - 0x1c]
push esi
call fcn.100d4330
add esp, 0x14
mov ebx, 4
jmp 0x10001391
mov eax, dword [ebp - 0x20]
cmp ebx, 4
jne 0x10001437
test eax, eax
je 0x1000142b
push str.No_matching_record_found_for_matching_hostName_and_ip..
push eax
call fcn.10127dc0
add esp, 8
mov dword [ebp - 4], 0xfffffffe
jmp 0x10001509
test eax, eax
je 0x1000144a
push ebx
push str.No_matching_record_found__query_type_:_d
push eax
call fcn.10127dc0
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x10001509
cmp eax, 0x64
jne 0x100014b1
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x10001479
push 0
push esi
call fcn.100d3e30
push eax
push 0x1014d8cc
push edi
call fcn.10127dc0
add esp, 0x14
xor edi, edi
je 0x10001494
push 1
push esi
call fcn.100d3e30
push eax
push 0x1014d8cc
push edi
call fcn.10127dc0
add esp, 0x14
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100014a1
mov dword [eax], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x10001509
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x100014d1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1011b860
push eax
push ebx
push str.Failed_to_execute_select_query__queryType_:__d__errmsg:__s
push edi
call fcn.10127dc0
add esp, 0x14
mov dword [ebp - 4], 0xfffffffe
jmp 0x10001509
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x10001516
push esi
call fcn.100d2cd0
add esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10127db1
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 0x10