Function at 0x10066e00
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x101ab0d8
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 0x10066e3d
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 0x100670ba
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.1012ce70
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.1012e7c0
cmp eax, ebx
jle 0x10067040
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.1012eae0
mov ecx, dword [esp + 0x10]
push str.users_
push ecx
call fcn.100e9f49
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x10067040
push str.users_
call fcn.100e9a88
add esp, 4
lea edx, [esi + eax*2]
lea ecx, [esp + 0x34]
push edx
call fcn.1012ce70
mov eax, dword [0x102acd68]
or ebp, 0xffffffff
cmp eax, ebx
mov byte [esp + 0x2c], 1
je 0x10066ee7
mov eax, dword [esp + 0x34]
push eax
push str.SetSelfInfoByDatabase_1___s_
push 0x10200620
push ebp
push 0x102ac4d4
call fcn.10141bb0
add esp, 0x14
push 0x40
lea ecx, [esp + 0x38]
call fcn.1012e710
cmp eax, ebx
jle 0x10067078
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.1012eae0
cmp dword [0x102acd68], ebx
je 0x10066f2a
mov ecx, dword [esp + 0x34]
push ecx
push str.SetSelfInfoByDatabase_2__User:_s_
push 0x10200620
push ebp
push 0x102ac4d4
call fcn.10141bb0
add esp, 0x14
mov ecx, 0x102320a8
call fcn.10003180
lea edx, [esp + 0x1c]
mov ecx, 0x102320a8
push edx
push edi
call fcn.10003360
cmp eax, ebx
jne 0x10067078
push 0x102323b8
lea ecx, [esp + 0x18]
call fcn.101027a0
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.10106020
mov eax, dword [0x102acd68]
add esp, 0xc
cmp eax, ebx
je 0x10066f9c
mov edx, dword [esp + 0x14]
push edx
push str.SetSelfInfoByDatabase_3___s_
push 0x10200620
push ebp
push 0x102ac4d4
call fcn.10141bb0
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.10003380
cmp eax, ebx
jne 0x1006704a
mov eax, dword [esp + 0x18]
mov ecx, 0x102320a8
push eax
call fcn.10003410
cmp eax, 0x64
jne 0x1006706a
mov ecx, dword [esp + 0x18]
push ebx
push ecx
mov ecx, 0x102320a8
call fcn.10003460
mov esi, eax
mov eax, dword [0x102acd68]
cmp eax, ebx
je 0x10067016
cmp esi, ebx
mov eax, esi
jne 0x10066ffd
mov eax, str.NULL
push eax
push str.SetSelfInfoByDatabase_4__Nick:_s_
push 0x10200620
push ebp
push 0x102ac4d4
call fcn.10141bb0
add esp, 0x14
cmp esi, ebx
je 0x1006706a
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push edx
mov ecx, edi
call fcn.100602c0
push esi
mov ecx, edi
call fcn.10060380
mov eax, dword [0x10233b00]
and al, 0xfe
mov dword [0x10233b00], eax
jmp 0x1006706a
mov dword [esp + 0x2c], 0xffffffff
jmp 0x10067089
cmp dword [0x102acd68], ebx
je 0x1006706a
push str.SetSelfInfoByDatabase_Err
push 0x10200620
push ebp
push 0x102ac4d4
call fcn.10141bb0
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.10103010
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call fcn.1012d610
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x10]
call fcn.1012d610
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
pop ebp
je 0x100670a7
push eax
mov ecx, 0x102320a8
call fcn.100034a0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x100670ba
push eax
mov ecx, 0x102320a8
call fcn.10003480
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4