Function at 0x100675a0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x101ae4b8
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 0x100675dd
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 [0x102388b0]
mov dword [esp + 0x14], ebx
and eax, 1
mov dword [esp + 0x10], ebx
cmp al, 1
jne 0x1006785a
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.1013b770
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.1013d0c0
cmp eax, ebx
jle 0x100677e0
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.1013d3e0
mov ecx, dword [esp + 0x10]
push str.users_
push ecx
call fcn.100ed039
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x100677e0
push str.users_
call fcn.100ecb78
add esp, 4
lea edx, [esi + eax*2]
lea ecx, [esp + 0x34]
push edx
call fcn.1013b770
mov eax, dword [0x102cb7c8]
or ebp, 0xffffffff
cmp eax, ebx
mov byte [esp + 0x2c], 1
je 0x10067687
mov eax, dword [esp + 0x34]
push eax
push str.SetSelfInfoByDatabase_1___s_
push 0x102047d8
push ebp
push 0x102caf34
call fcn.10131cf0
add esp, 0x14
push 0x40
lea ecx, [esp + 0x38]
call fcn.1013d010
cmp eax, ebx
jle 0x10067818
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.1013d3e0
cmp dword [0x102cb7c8], ebx
je 0x100676ca
mov ecx, dword [esp + 0x34]
push ecx
push str.SetSelfInfoByDatabase_2__User:_s_
push 0x102047d8
push ebp
push 0x102caf34
call fcn.10131cf0
add esp, 0x14
mov ecx, 0x10236e78
call fcn.100031d0
lea edx, [esp + 0x1c]
mov ecx, 0x10236e78
push edx
push edi
call fcn.100033b0
cmp eax, ebx
jne 0x10067818
push 0x10237188
lea ecx, [esp + 0x18]
call fcn.101058a0
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.10109120
mov eax, dword [0x102cb7c8]
add esp, 0xc
cmp eax, ebx
je 0x1006773c
mov edx, dword [esp + 0x14]
push edx
push str.SetSelfInfoByDatabase_3___s_
push 0x102047d8
push ebp
push 0x102caf34
call fcn.10131cf0
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, 0x10236e78
call fcn.100033d0
cmp eax, ebx
jne 0x100677ea
mov eax, dword [esp + 0x18]
mov ecx, 0x10236e78
push eax
call fcn.10003460
cmp eax, 0x64
jne 0x1006780a
mov ecx, dword [esp + 0x18]
push ebx
push ecx
mov ecx, 0x10236e78
call fcn.100034b0
mov esi, eax
mov eax, dword [0x102cb7c8]
cmp eax, ebx
je 0x100677b6
cmp esi, ebx
mov eax, esi
jne 0x1006779d
mov eax, str.NULL
push eax
push str.SetSelfInfoByDatabase_4__Nick:_s_
push 0x102047d8
push ebp
push 0x102caf34
call fcn.10131cf0
add esp, 0x14
cmp esi, ebx
je 0x1006780a
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push edx
mov ecx, edi
call fcn.10060a30
push esi
mov ecx, edi
call fcn.10060af0
mov eax, dword [0x102388b0]
and al, 0xfe
mov dword [0x102388b0], eax
jmp 0x1006780a
mov dword [esp + 0x2c], 0xffffffff
jmp 0x10067829
cmp dword [0x102cb7c8], ebx
je 0x1006780a
push str.SetSelfInfoByDatabase_Err
push 0x102047d8
push ebp
push 0x102caf34
call fcn.10131cf0
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.10106110
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call fcn.1013bf10
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x10]
call fcn.1013bf10
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
pop ebp
je 0x10067847
push eax
mov ecx, 0x10236e78
call fcn.100034f0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1006785a
push eax
mov ecx, 0x10236e78
call fcn.100034d0
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4