Function at 0x408940
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x850
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
movzx eax, word [edi + 4]
mov ecx, dword [edi + 6]
mov edx, dword [edi + 0xa]
mov dword [ebp - 0x82c], edi
add edi, 6
mov dword [ebp - 0x822], ecx
mov cl, byte [edi + 0xa]
mov word [ebp - 0x824], ax
movzx eax, word [edi + 8]
mov byte [ebp - 0x818], cl
push edi
mov ebx, 0x14
push str.WZ_UserGuidCreate__s
mov ecx, 0x424ee0
mov byte [ebp - 0x828], 0xc2
mov byte [ebp - 0x825], 0x60
mov dword [ebp - 0x834], ebx
mov dword [ebp - 0x81e], edx
mov word [ebp - 0x81a], ax
mov byte [ebp - 0x817], 0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 8
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
mov eax, dword [0x424eec]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call esi
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.SELECT_GUID_MemoTotal_FROM_T_FriendMain_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 8
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.GUID
call fcn.00417950
cmp eax, 0xffffffff
jne 0x408a26
mov dword [ebp - 0x814], eax
jmp 0x408a3e
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [ebp - 0x814], eax
push str.MemoTotal
call fcn.00417950
cmp eax, 0xffffffff
jne 0x408a51
or eax, eax
jmp 0x408a63
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov byte [ebp - 0x816], al
mov eax, dword [0x424eec]
push eax
call esi
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [ebp - 0x814]
push edx
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x408bf8
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408bf8
lea ecx, [ebp - 0x7f0]
mov dword [ebp - 0x830], ecx
xor edx, edx
xor esi, esi
cmp dx, word [0x424f54]
jge 0x408b24
mov ebx, 0x424f56
jmp 0x408ae0
push ebx
push str.FriendName
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x408b1f
movsx eax, word [0x424f54]
inc esi
add ebx, 0x1e
cmp esi, eax
jl 0x408ae0
xor eax, eax
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], eax
mov word [ebp - 0x808], ax
mov byte [ebp - 0x806], al
jmp 0x408b5f
cmp esi, 0xffffffff
jne 0x408b41
xor eax, eax
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], eax
mov word [ebp - 0x808], ax
mov byte [ebp - 0x806], al
jmp 0x408b5f
push 0xa
shl esi, 0xd
add esi, 0x425b0e
push esi
lea ecx, [ebp - 0x810]
push 0xb
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy_s]
add esp, 0x10
xor edx, edx
xor esi, esi
cmp dx, word [0x424f54]
jge 0x408b97
mov ebx, 0x424f56
push ebx
push 0x41e5f4
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x408cb6
movsx eax, word [0x424f54]
inc esi
add ebx, 0x1e
cmp esi, eax
jl 0x408b71
mov byte [ebp - 0x805], 0xff
mov eax, dword [ebp - 0x830]
mov edx, dword [ebp - 0x810]
mov ecx, dword [ebp - 0x80c]
mov ebx, dword [ebp - 0x834]
inc byte [ebp - 0x817]
mov dword [eax], edx
mov edx, dword [ebp - 0x808]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
add eax, 0xc
mov dword [ebp - 0x830], eax
mov eax, dword [0x424eec]
add ebx, 0xc
push eax
mov dword [ebp - 0x834], ebx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x408ac3
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push ecx
call esi
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [ebp - 0x824]
mov esi, dword [ebp + 8]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x827], al
mov eax, dword [ebp - 0x820]
mov byte [ebp - 0x826], bl
mov ecx, dword [ebp - 0x828]
mov dword [ebp - 0x804], ecx
mov ecx, dword [ebp - 0x81c]
mov dword [ebp - 0x7fc], eax
mov dword [ebp - 0x800], edx
mov edx, dword [ebp - 0x818]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x7f8], ecx
push eax
mov ecx, ebx
mov dword [ebp - 0x7f4], edx
call fcn.004086c0
mov ecx, dword [ebp - 0x82c]
movzx edx, word [ecx + 4]
mov eax, dword [ebp - 0x814]
push edx
push eax
push esi
mov ebx, edi
call fcn.00409b00
mov ecx, dword [ebp - 0x82c]
movzx edx, word [ecx + 4]
mov ecx, dword [ebp - 0x814]
push edi
push edx
mov eax, esi
push eax
call fcn.00409e50
mov ecx, dword [ebp - 4]
add esp, 0x1c
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x408b97
shl esi, 0xd
add esi, 0x425b0e
push esi
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
test eax, eax
jne 0x408b97
lea ecx, [ebp - 0x850]
push ecx
lea ecx, [ebp - 0x810]
call fcn.00406be0
test al, al
mov eax, 0xffff
je 0x408cfc
movzx eax, word [ebp - 0x838]
mov byte [ebp - 0x805], al
jmp 0x408b9e