Function at 0x10064d40
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x10187fb8
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 0x10064d7d
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 [0x101fbe08]
mov dword [esp + 0x14], ebx
and eax, 1
mov dword [esp + 0x10], ebx
cmp al, 1
jne 0x10064ffa
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.1010cd00
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.1010e650
cmp eax, ebx
jle 0x10064f80
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.1010e970
mov ecx, dword [esp + 0x10]
push str.users_
push ecx
call fcn.100ca359
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x10064f80
push str.users_
call fcn.100c9da4
add esp, 4
lea edx, [esi + eax*2]
lea ecx, [esp + 0x34]
push edx
call fcn.1010cd00
mov eax, dword [0x10274670]
or ebp, 0xffffffff
cmp eax, ebx
mov byte [esp + 0x2c], 1
je 0x10064e27
mov eax, dword [esp + 0x34]
push eax
push str.SetSelfInfoByDatabase_1___s_
push 0x101cf754
push ebp
push 0x10273ddc
call fcn.10119f10
add esp, 0x14
push 0x40
lea ecx, [esp + 0x38]
call fcn.1010e5a0
cmp eax, ebx
jle 0x10064fb8
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.1010e970
cmp dword [0x10274670], ebx
je 0x10064e6a
mov ecx, dword [esp + 0x34]
push ecx
push str.SetSelfInfoByDatabase_2__User:_s_
push 0x101cf754
push ebp
push 0x10273ddc
call fcn.10119f10
add esp, 0x14
mov ecx, 0x101f9f48
call fcn.10002860
lea edx, [esp + 0x1c]
mov ecx, 0x101f9f48
push edx
push edi
call fcn.10002a40
cmp eax, ebx
jne 0x10064fb8
push 0x101fa2d8
lea ecx, [esp + 0x18]
call fcn.100e29f0
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.100e6270
mov eax, dword [0x10274670]
add esp, 0xc
cmp eax, ebx
je 0x10064edc
mov edx, dword [esp + 0x14]
push edx
push str.SetSelfInfoByDatabase_3___s_
push 0x101cf754
push ebp
push 0x10273ddc
call fcn.10119f10
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, 0x101f9f48
call fcn.10002a60
cmp eax, ebx
jne 0x10064f8a
mov eax, dword [esp + 0x18]
mov ecx, 0x101f9f48
push eax
call fcn.10002af0
cmp eax, 0x64
jne 0x10064faa
mov ecx, dword [esp + 0x18]
push ebx
push ecx
mov ecx, 0x101f9f48
call fcn.10002b40
mov esi, eax
mov eax, dword [0x10274670]
cmp eax, ebx
je 0x10064f56
cmp esi, ebx
mov eax, esi
jne 0x10064f3d
mov eax, str.NULL
push eax
push str.SetSelfInfoByDatabase_4__Nick:_s_
push 0x101cf754
push ebp
push 0x10273ddc
call fcn.10119f10
add esp, 0x14
cmp esi, ebx
je 0x10064faa
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push edx
mov ecx, edi
call fcn.1005d700
push esi
mov ecx, edi
call fcn.1005d7c0
mov eax, dword [0x101fbe08]
and al, 0xfe
mov dword [0x101fbe08], eax
jmp 0x10064faa
mov dword [esp + 0x2c], 0xffffffff
jmp 0x10064fc9
cmp dword [0x10274670], ebx
je 0x10064faa
push str.SetSelfInfoByDatabase_Err
push 0x101cf754
push ebp
push 0x10273ddc
call fcn.10119f10
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.100e3260
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call fcn.1010d4a0
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x10]
call fcn.1010d4a0
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
pop ebp
je 0x10064fe7
push eax
mov ecx, 0x101f9f48
call fcn.10002b80
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10064ffa
push eax
mov ecx, 0x101f9f48
call fcn.10002b60
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4