Function at 0x10066cd0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x101aa398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [esp + 0x2c]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x18], ecx
jne 0x10066d0d
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov eax, dword [0x10233b00]
mov dword [esp + 0x14], ebx
and eax, 1
mov dword [esp + 0x10], ebx
cmp al, 1
jne 0x10066f8a
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.1012c130
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.1012da80
cmp eax, ebx
jle 0x10066f10
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.1012dda0
mov ecx, dword [esp + 0x10]
push str.users_
push ecx
call fcn.100e9e19
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x10066f10
push str.users_
call fcn.100e9958
add esp, 4
lea edx, [esi + eax*2]
lea ecx, [esp + 0x34]
push edx
call fcn.1012c130
mov eax, dword [0x102acd68]
or ebp, 0xffffffff
cmp eax, ebx
mov byte [esp + 0x2c], 1
je 0x10066db7
mov eax, dword [esp + 0x34]
push eax
push str.SetSelfInfoByDatabase_1___s_
push 0x10200620
push ebp
push 0x102ac4d4
call fcn.10140e70
add esp, 0x14
push 0x40
lea ecx, [esp + 0x38]
call fcn.1012d9d0
cmp eax, ebx
jle 0x10066f48
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.1012dda0
cmp dword [0x102acd68], ebx
je 0x10066dfa
mov ecx, dword [esp + 0x34]
push ecx
push str.SetSelfInfoByDatabase_2__User:_s_
push 0x10200620
push ebp
push 0x102ac4d4
call fcn.10140e70
add esp, 0x14
mov ecx, 0x102320a8
call fcn.10003150
lea edx, [esp + 0x1c]
mov ecx, 0x102320a8
push edx
push edi
call fcn.10003330
cmp eax, ebx
jne 0x10066f48
push 0x102323b8
lea ecx, [esp + 0x18]
call fcn.10102670
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
push str.SELECT_T1.senderName__t_t_t_t_t_tFROM_message_as_T1__t_t_t_t_t_tWHERE_T1.sender___s
push ecx
mov byte [esp + 0x38], 2
call fcn.10105ef0
mov eax, dword [0x102acd68]
add esp, 0xc
cmp eax, ebx
je 0x10066e6c
mov edx, dword [esp + 0x14]
push edx
push str.SetSelfInfoByDatabase_3___s_
push 0x10200620
push ebp
push 0x102ac4d4
call fcn.10140e70
add esp, 0x14
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push ebx
push eax
push ebp
push ecx
push edx
mov ecx, 0x102320a8
call fcn.10003350
cmp eax, ebx
jne 0x10066f1a
mov eax, dword [esp + 0x18]
mov ecx, 0x102320a8
push eax
call fcn.100033e0
cmp eax, 0x64
jne 0x10066f3a
mov ecx, dword [esp + 0x18]
push ebx
push ecx
mov ecx, 0x102320a8
call fcn.10003430
mov esi, eax
mov eax, dword [0x102acd68]
cmp eax, ebx
je 0x10066ee6
cmp esi, ebx
mov eax, esi
jne 0x10066ecd
mov eax, str.NULL
push eax
push str.SetSelfInfoByDatabase_4__Nick:_s_
push 0x10200620
push ebp
push 0x102ac4d4
call fcn.10140e70
add esp, 0x14
cmp esi, ebx
je 0x10066f3a
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push edx
mov ecx, edi
call fcn.10060190
push esi
mov ecx, edi
call fcn.10060250
mov eax, dword [0x10233b00]
and al, 0xfe
mov dword [0x10233b00], eax
jmp 0x10066f3a
mov dword [esp + 0x2c], 0xffffffff
jmp 0x10066f59
cmp dword [0x102acd68], ebx
je 0x10066f3a
push str.SetSelfInfoByDatabase_Err
push 0x10200620
push ebp
push 0x102ac4d4
call fcn.10140e70
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.10102ee0
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call fcn.1012c8d0
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x10]
call fcn.1012c8d0
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
pop ebp
je 0x10066f77
push eax
mov ecx, 0x102320a8
call fcn.10003470
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10066f8a
push eax
mov ecx, 0x102320a8
call fcn.10003450
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4