Function at 0x405950
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
jmp 0x405969
movzx eax, byte [ebp + 0xc]
add eax, 0xffffffa0
cmp eax, 0x13
ja case.0x405980.97
movzx eax, byte [eax + 0x405c80]
jmp dword [eax*4 + 0x405c58]
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.00405ca0
jmp case.0x405980.97
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.004060b0
jmp case.0x405980.97
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.004063b0
jmp case.0x405980.97
mov ecx, dword [ebp + 0x10]
movq xmm0, qword [ecx + 6]
lea edi, [ecx + 6]
lea esi, [ecx + 0x11]
movq qword [ebp - 0x19], xmm0
movq xmm0, qword [esi]
movzx eax, word [ecx + 4]
mov word [ebp - 0x1c], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x11], ax
mov al, byte [edi + 0xa]
push esi
mov byte [ebp - 0xf], al
movzx eax, word [esi + 8]
push edi
mov word [ebp - 6], ax
mov al, byte [esi + 0xa]
push str.WZ_FriendDel__s__s
push 0x447690
mov word [ebp - 0x20], 0x1ec1
mov byte [ebp - 0x1e], 0x65
movq qword [ebp - 0xe], xmm0
mov byte [ebp - 4], al
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x4482be
call fcn.00420b26
add esp, 4
mov byte [ebp - 0x1a], al
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1e
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00405770
cmp byte [ebp - 0x1a], 1
jne case.0x405980.97
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.00404710
test al, al
je case.0x405980.97
movzx eax, word [ebp - 6]
xor edx, edx
movq xmm0, qword [esi]
mov word [ebp - 0x3c], ax
movzx eax, word [esi + 8]
mov word [ebp - 0x32], ax
mov al, byte [esi + 0xa]
mov si, word [ebp - 4]
mov byte [ebp - 0x30], al
movzx eax, word [edi + 8]
mov word [ebp - 0x27], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x3a], xmm0
movq xmm0, qword [edi]
mov byte [ebp - 0x25], al
xor eax, eax
mov word [ebp - 0x40], 0x1ec1
mov byte [ebp - 0x3e], 0x62
movq qword [ebp - 0x2f], xmm0
mov byte [ebp - 0x24], 0xff
mov ecx, dword [eax + 0x511774]
test ecx, ecx
js 0x405aeb
cmp ecx, 0x14
jge 0x405aeb
cmp dword [eax + 0x511778], 0
je 0x405aeb
cmp dword [eax + 0x51178c], 0xffffffff
je 0x405aeb
cmp word [eax + 0x5117cc], si
je 0x405afb
add eax, 0x68
inc edx
cmp eax, 0x820
jl 0x405ac1
jmp case.0x405980.97
imul eax, edx, 0x68
add eax, 0x511770
je case.0x405980.97
push 0x1e
lea ecx, [ebp - 0x40]
push ecx
push dword [eax + 4]
jmp 0x405c3a
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.004065c0
jmp case.0x405980.97
mov edi, dword [ebp + 0x10]
lea ebx, [edi + 6]
push ebx
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.GUID
call fcn.00417040
cmp eax, 0xffffffff
jne 0x405b5f
or esi, eax
jmp 0x405b72
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov esi, eax
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 4]
push ebx
push eax
push esi
push dword [ebp + 8]
call fcn.00406e70
jmp case.0x405980.97
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.00406a30
jmp case.0x405980.97
mov ecx, dword [ebp + 0x10]
mov word [ebp - 0x18], 0x14c1
mov byte [ebp - 0x16], 0x73
movzx edx, word [ecx + 6]
movzx eax, word [ecx + 4]
add ecx, 8
push edx
mov word [ebp - 0x12], ax
push ecx
movzx eax, word [ecx + 8]
movq xmm0, qword [ecx]
mov word [ebp - 8], ax
mov al, byte [ecx + 0xa]
push str.WZ_DelMail__s__d
push 0x447690
mov word [ebp - 0x14], dx
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 6], al
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x4482be
call fcn.00420b26
add esp, 4
mov byte [ebp - 0x15], al
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.00405770
jmp 0x405c4f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10