Function at 0x4056e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x205c
call fcn.00435200
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 4]
xorps xmm0, xmm0
push ebx
push esi
movups xmmword [ebp - 0x204f], xmm0
xor bl, bl
mov word [ebp - 0x204c], ax
movq xmm0, qword [ecx + 6]
movzx eax, word [ecx + 0xe]
push edi
lea edi, [ecx + 6]
mov word [ebp - 0x2042], ax
mov al, byte [edi + 0xa]
push edi
push str.WZ_UserGuidCreate__s
mov word [ebp - 0x203f], 0
push 0x446e50
mov dword [ebp - 0x203c], edx
mov dword [ebp - 0x2054], ecx
mov byte [ebp - 0x203d], 0
mov byte [ebp - 0x2050], 0xc2
mov byte [ebp - 0x204d], 0x60
mov dword [ebp - 0x2038], 0x14
mov dword [ebp - 0x2058], edi
movq qword [ebp - 0x204a], xmm0
mov byte [ebp - 0x2040], al
mov byte [ebp - 0x203f], bl
call fcn.0041ad10
mov esi, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
push dword [0x446e5c]
call esi
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.SELECT_GUID_MemoTotal_FROM_T_FriendMain_WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
call esi
push str.GUID
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4057e2
mov dword [ebp - 0x2034], eax
jmp 0x4057f9
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x2034], eax
push str.MemoTotal
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40580c
or eax, eax
jmp 0x40581d
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov byte [ebp - 0x203e], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [ebp - 0x2034]
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x405975
push dword [0x446e5c]
call esi
cmp ax, 0x64
je 0x405975
lea esi, [ebp - 0x1ff4]
mov edi, 0x20
mov eax, esi
sub edi, eax
nop
lea eax, [edi + esi]
cmp eax, 0x2000
jae 0x405963
push str.FriendName
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4058ba
xorps xmm0, xmm0
mov word [ebp - 0x200c], 0
movq qword [ebp - 0x2014], xmm0
mov byte [ebp - 0x200a], 0
jmp 0x4058d6
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x2014]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
push 0x43cfac
call fcn.0041af60
cmp eax, 0xffffffff
je 0x405925
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
test eax, eax
jne 0x405925
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2030]
push eax
call fcn.00404310
test al, al
mov eax, 0xffff
je 0x40591d
movzx eax, word [ebp - 0x2018]
mov byte [ebp - 0x2009], al
jmp 0x40592c
mov byte [ebp - 0x2009], 0xff
movq xmm0, qword [ebp - 0x2014]
inc bl
mov eax, dword [ebp - 0x200c]
push dword [0x446e5c]
add dword [ebp - 0x2038], 0xc
movq qword [esi], xmm0
mov dword [esi + 8], eax
add esi, 0xc
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x405880
mov edi, dword [ebp - 0x2058]
mov esi, dword [sym.imp.ODBC32.dll_SQLFetch]
mov byte [ebp - 0x203f], bl
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x2038]
lea edx, [ebp - 0x2008]
mov eax, ecx
mov byte [ebp - 0x204e], cl
shr eax, 8
mov byte [ebp - 0x204f], al
movups xmm0, xmmword [ebp - 0x2050]
mov eax, dword [ebp - 0x2040]
push ecx
mov ecx, dword [ebp - 0x203c]
movups xmmword [ebp - 0x2008], xmm0
mov dword [ebp - 0x1ff8], eax
call fcn.004052c0
mov eax, dword [ebp - 0x2054]
add esp, 4
push dword [ebp - 0x2034]
movzx ebx, word [eax + 4]
push str.SELECT_FriendName_FROM_T_WaitFriend_WHERE_GUID_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x405ae0
push dword [0x446e5c]
call esi
cmp ax, 0x64
je 0x405ae0
mov ax, word [edi + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x202f], xmm0
mov word [ebp - 0x2022], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x201f], xmm0
movq xmm0, qword [edi]
push str.FriendName
mov word [ebp - 0x2017], 0
mov byte [ebp - 0x2015], 0
mov word [ebp - 0x2030], 0x1cc1
mov byte [ebp - 0x202e], 0x61
mov word [ebp - 0x202c], bx
movq qword [ebp - 0x202a], xmm0
mov byte [ebp - 0x2020], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x405a96
xorps xmm0, xmm0
mov word [ebp - 0x2017], 0
movq qword [ebp - 0x201f], xmm0
mov byte [ebp - 0x2015], 0
jmp 0x405ab2
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x201f]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
movzx eax, byte [ebp - 0x202f]
lea edx, [ebp - 0x2030]
mov ecx, dword [ebp - 0x203c]
push eax
call fcn.004052c0
add esp, 4
push dword [0x446e5c]
call esi
cmp ax, 0x64
jne 0x405a11
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x2054]
mov edx, dword [ebp - 0x2034]
mov ecx, dword [ebp - 0x203c]
push edi
movzx eax, word [eax + 4]
push eax
call fcn.00406840
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041dc7d
mov esp, ebp
pop ebp
ret