Function at 0x100011b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xfffffffffffffffe
push 0x1016f918
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1017455c]
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 dword [ebp - 0x24], ecx
mov esi, dword [ebp + 0x218]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x21c]
mov dword [ebp - 0x38], eax
mov edi, dword [ebp + 0x220]
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp + 0x224]
mov dword [ebp - 0x20], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp], bl
push 0x103
push ebx
lea edx, [ebp + 1]
push edx
call fcn.10116880
mov byte [ebp + 0x104], bl
push 0x103
push ebx
lea eax, [ebp + 0x105]
push eax
call fcn.10116880
add esp, 0x18
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x10001262
mov dword [edi], ebx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x10001294
cmp esi, ebx
jne 0x10001290
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x10001282
push str.Invalid_HostName_and_ip
push eax
call fcn.1010d6a8
add esp, 8
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10001540
cmp eax, ebx
je 0x100012b8
cmp esi, ebx
je 0x1000129d
cmp byte [esi], 0
jne 0x100012b8
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 0x10001312
cmp esi, ebx
je 0x100012e9
cmp eax, ebx
je 0x100012c5
cmp byte [eax], 0
jne 0x100012e9
mov ebx, 2
push esi
push str.___s___
lea ecx, [ebp]
push ecx
call fcn.1010d6a8
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 0x1000130d
mov ebx, 3
push esi
push str.___s___
lea edx, [ebp]
push edx
call fcn.1010d6a8
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 eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
lea ecx, [ebp + 0x104]
push ecx
mov edi, dword [ebp - 0x2c]
push edi
call fcn.100eb050
add esp, 0x14
test eax, eax
je 0x10001357
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x10001526
push edi
call fcn.101079c0
push eax
push str.Failed_to_create_queryStmt___ErrMsg_:__s
push esi
call fcn.1010d6a8
add esp, 0x10
jmp 0x10001526
mov esi, dword [ebp - 0x1c]
cmp ebx, 1
jne 0x10001373
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
push edx
push ebx
push esi
call fcn.100c0490
add esp, 0x14
jmp 0x100013b5
cmp ebx, 2
jne 0x1000138d
push 0
push 0xffffffffffffffff
lea eax, [ebp]
push eax
push 1
push esi
call fcn.100c0490
add esp, 0x14
jmp 0x100013b5
cmp ebx, 3
jne 0x100013b5
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x24]
push ecx
push 1
push esi
call fcn.100c0490
push 0
push 0xffffffffffffffff
lea edx, [ebp]
push edx
push 2
push esi
call fcn.100c0490
add esp, 0x28
push esi
call fcn.100bf990
add esp, 4
cmp eax, 0x65
jne 0x1000147a
cmp ebx, 3
jne 0x10001435
push esi
call fcn.100bee30
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push str.SELECT_UserId_HostName_FROM_RAUserData_WHERE_HostName____COLLATE_NOCASE_order_by_updatetime_DESC_Limit_1_
push edi
call fcn.100eb050
add esp, 0x18
test eax, eax
je 0x10001418
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x10001526
push edi
call fcn.101079c0
push eax
push str.Failed_to_re_create_queryStmt_with_HostName___ErrMsg_:__s
push esi
call fcn.1010d6a8
add esp, 0x10
jmp 0x10001526
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x24]
push ecx
push 1
mov esi, dword [ebp - 0x1c]
push esi
call fcn.100c0490
add esp, 0x14
mov ebx, 4
jmp 0x100013b5
mov eax, dword [ebp - 0x20]
cmp ebx, 4
jne 0x1000145b
test eax, eax
je 0x1000144f
push str.No_matching_record_found_for_matching_hostName_and_ip..
push eax
call fcn.1010d6a8
add esp, 8
mov dword [ebp - 4], 0xfffffffe
jmp 0x10001530
test eax, eax
je 0x1000146e
push ebx
push str.No_matching_record_found__query_type_:_d
push eax
call fcn.1010d6a8
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x10001530
cmp eax, 0x64
jne 0x100014d8
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x1000149d
push 0
push esi
call fcn.100bff90
push eax
push 0x1013fb04
push edi
call fcn.1010d6a8
add esp, 0x14
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x100014bb
push 1
push esi
call fcn.100bff90
push eax
push 0x1013fb04
push edi
call fcn.1010d6a8
add esp, 0x14
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100014c8
mov dword [eax], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x10001530
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x100014f8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.101079c0
push eax
push ebx
push str.Failed_to_execute_select_query__queryType_:__d__errmsg:__s
push edi
call fcn.1010d6a8
add esp, 0x14
mov dword [ebp - 4], 0xfffffffe
jmp 0x10001530
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1000153d
push esi
call fcn.100bee30
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.1010d699
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 0x14