Function at 0x40bd00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov cx, word [esi + 4]
mov edx, dword [esi + 6]
mov word [ebp - 0x82e], cx
mov ecx, dword [esi + 0xa]
mov dword [ebp - 0x840], esi
add esi, 6
mov dword [ebp - 0x828], ecx
mov cl, byte [esi + 0xa]
push edi
mov dword [ebp - 0x82c], edx
mov dx, word [esi + 8]
xor al, al
mov byte [ebp - 0x822], cl
push esi
push str.WZ_UserGuidCreate__s
mov ecx, 0x4ed8c0
mov byte [ebp - 0x834], 0xc2
mov word [ebp - 0x831], 0xb0
mov dword [ebp - 0x81c], 0x16
mov word [ebp - 0x824], dx
mov byte [ebp - 0x821], al
call fcn.00414e40
mov edx, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 8
push edx
call edi
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push esi
push str.SELECT_GUID_MemoTotal_FROM_T_FriendMain_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 8
push edx
call edi
push str.GUID
mov ebx, 0x4ed8c0
call fcn.00415000
mov edi, eax
push str.MemoTotal
mov dword [ebp - 0x838], edi
call fcn.00415000
mov byte [ebp - 0x820], al
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
mov ecx, ebx
call fcn.00414e40
add esp, 8
test al, al
je 0x40bef9
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40bef9
lea eax, [ebp - 0x7f6]
mov dword [ebp - 0x83c], eax
lea ebx, [ebx]
push 0xb
lea ecx, [ebp - 0x818]
push ecx
push str.FriendName
call fcn.00415170
xor edx, edx
xor ebx, ebx
cmp dx, word [0x4ed934]
jge 0x40bea6
mov edi, 0x4ed936
jmp 0x40be80
push edi
push 0x41c97c
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x40bfc5
movsx eax, word [0x4ed934]
inc ebx
add edi, 0x1e
cmp ebx, eax
jl 0x40be80
mov byte [ebp - 0x80d], 0xff
mov eax, dword [ebp - 0x83c]
mov edx, dword [ebp - 0x818]
mov ecx, dword [ebp - 0x814]
add dword [ebp - 0x81c], 0xc
inc byte [ebp - 0x821]
mov dword [eax], edx
mov edx, dword [ebp - 0x810]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
add eax, 0xc
mov dword [ebp - 0x83c], eax
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x40be50
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ebx, dword [ebp - 0x81c]
mov edx, dword [ebp - 0x830]
mov edi, dword [ebp + 8]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x833], al
mov eax, dword [ebp - 0x82c]
mov byte [ebp - 0x832], bl
mov ecx, dword [ebp - 0x834]
mov dword [ebp - 0x80c], ecx
mov ecx, dword [ebp - 0x828]
mov dword [ebp - 0x800], ecx
lea ecx, [ebp - 0x80c]
mov dword [ebp - 0x808], edx
mov edx, dword [ebp - 0x824]
mov dword [ebp - 0x804], eax
mov ax, word [ebp - 0x820]
push ecx
push edi
mov dword [ebp - 0x7fc], edx
mov word [ebp - 0x7f8], ax
call fcn.00416c00
mov ebx, dword [ebp - 0x840]
movzx edx, word [ebx + 4]
mov eax, dword [ebp - 0x838]
push edx
push eax
push edi
call fcn.0040cc10
movzx ecx, word [ebx + 4]
mov edx, dword [ebp - 0x838]
push ecx
push edx
push edi
mov edi, esi
call fcn.0040cea0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 4
cmp ebx, 0xffffffff
je 0x40bea6
shl ebx, 0xd
add ebx, 0x4ee4ee
push ebx
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
test eax, eax
jne 0x40bea6
lea ecx, [ebp - 0x85c]
push ecx
lea ecx, [ebp - 0x818]
call fcn.00406460
test al, al
mov eax, 0xffff
je 0x40c00b
movzx eax, word [ebp - 0x844]
mov byte [ebp - 0x80d], al
jmp 0x40bead