Function at 0x4053a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
push ebx
push esi
push edi
lea edi, [ecx + 6]
mov word [ebp - 0x850], ax
movzx eax, word [edi + 8]
xor bl, bl
push edi
mov word [ebp - 0x846], ax
mov al, byte [edi + 0xa]
push str.WZ_UserGuidCreate__s
push 0x442698
mov dword [ebp - 0x83c], edx
mov dword [ebp - 0x840], ecx
mov byte [ebp - 0x854], 0xc2
mov byte [ebp - 0x851], 0x60
mov dword [ebp - 0x838], 0x14
movq qword [ebp - 0x84e], xmm0
mov byte [ebp - 0x844], al
mov byte [ebp - 0x843], bl
call fcn.00413700
mov esi, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
push dword [0x4426a4]
call esi
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.SELECT_GUID_MemoTotal_FROM_T_FriendMain_WHERE_Name_s
push 0x442698
call fcn.00413700
add esp, 0xc
push dword [0x4426a4]
call esi
push str.GUID
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40547e
mov dword [ebp - 0x834], eax
jmp 0x405495
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
mov dword [ebp - 0x834], eax
push str.MemoTotal
call fcn.00413990
cmp eax, 0xffffffff
jne 0x4054a8
or eax, eax
jmp 0x4054b9
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov byte [ebp - 0x842], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [ebp - 0x834]
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x4055f0
push dword [0x4426a4]
call esi
cmp ax, 0x64
je 0x4055f0
lea esi, [ebp - 0x7f4]
push str.FriendName
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40553d
xorps xmm0, xmm0
mov word [ebp - 0x80c], 0
movq qword [ebp - 0x814], xmm0
mov byte [ebp - 0x80a], 0
jmp 0x405559
shl eax, 0xd
push 0xa
add eax, 0x443e7e
push eax
lea eax, [ebp - 0x814]
push 0xb
push eax
call fcn.00420956
add esp, 0x10
push 0x437620
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40556c
or eax, eax
jmp 0x40557d
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
test eax, eax
jne 0x4055ac
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00403910
test al, al
mov eax, 0xffff
je 0x4055a4
movzx eax, word [ebp - 0x818]
mov byte [ebp - 0x809], al
jmp 0x4055b3
mov byte [ebp - 0x809], 0xff
movq xmm0, qword [ebp - 0x814]
inc bl
mov eax, dword [ebp - 0x80c]
push dword [0x4426a4]
add dword [ebp - 0x838], 0xc
movq qword [esi], xmm0
mov dword [esi + 8], eax
add esi, 0xc
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x405511
mov byte [ebp - 0x843], bl
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x838]
lea edx, [ebp - 0x808]
mov eax, ecx
mov byte [ebp - 0x852], cl
shr eax, 8
mov byte [ebp - 0x853], al
movups xmm0, xmmword [ebp - 0x854]
mov eax, dword [ebp - 0x844]
push ecx
mov ecx, dword [ebp - 0x83c]
movups xmmword [ebp - 0x808], xmm0
mov dword [ebp - 0x7f8], eax
call fcn.00404ea0
mov eax, dword [ebp - 0x840]
add esp, 4
push dword [ebp - 0x834]
movzx esi, word [eax + 4]
push str.SELECT_FriendName_FROM_T_WaitFriend_WHERE_GUID_d
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x40574d
push dword [0x4426a4]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x40574d
nop dword [eax]
nop word [eax + eax]
mov ax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x822], ax
mov al, byte [edi + 0xa]
push str.FriendName
mov word [ebp - 0x830], 0x1cc1
mov byte [ebp - 0x82e], 0x61
mov word [ebp - 0x82c], si
movq qword [ebp - 0x82a], xmm0
mov byte [ebp - 0x820], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x405703
xorps xmm0, xmm0
mov word [ebp - 0x817], 0
movq qword [ebp - 0x81f], xmm0
mov byte [ebp - 0x815], 0
jmp 0x40571f
shl eax, 0xd
push 0xa
add eax, 0x443e7e
push eax
lea eax, [ebp - 0x81f]
push 0xb
push eax
call fcn.00420956
add esp, 0x10
movzx eax, byte [ebp - 0x82f]
lea edx, [ebp - 0x830]
mov ecx, dword [ebp - 0x83c]
push eax
call fcn.00404ea0
add esp, 4
push dword [0x4426a4]
call ebx
cmp ax, 0x64
jne 0x4056a0
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x840]
mov edx, dword [ebp - 0x834]
mov ecx, dword [ebp - 0x83c]
push edi
movzx eax, word [eax + 4]
push eax
call fcn.00406560
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004163e0
mov esp, ebp
pop ebp
ret