Function at 0x405460
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov dword [ebp - 8], ecx
jmp 0x40547f
movzx eax, byte [ebp - 1]
add eax, 0xffffffa0
cmp eax, 0x13
ja case.0x405496.97
movzx eax, byte [eax + 0x405798]
jmp dword [eax*4 + 0x405770]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.004057b0
jmp case.0x405496.97
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.00405c00
jmp case.0x405496.97
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.00405eb0
jmp case.0x405496.97
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x27], xmm0
lea edi, [ecx + 6]
mov dword [ebp - 0xf], 0
lea esi, [ecx + 0x11]
movq qword [ebp - 0x17], xmm0
movzx eax, word [ecx + 4]
movq xmm0, qword [edi]
mov word [ebp - 0x24], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x19], ax
mov al, byte [edi + 0xa]
push esi
mov byte [ebp - 0x17], al
movzx eax, word [esi + 8]
push edi
movq qword [ebp - 0x21], xmm0
movq xmm0, qword [esi]
mov word [ebp - 0xe], ax
mov al, byte [esi + 0xa]
push str.WZ_FriendDel__s__s
push 0x446e50
mov byte [ebp - 0xb], 0
mov word [ebp - 0x28], 0x1ec1
mov byte [ebp - 0x26], 0x65
movq qword [ebp - 0x16], xmm0
mov byte [ebp - 0xc], al
call fcn.0041ad00
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x447a7e
call fcn.0042415e
add esp, 4
mov byte [ebp - 0x22], al
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 - 8]
lea edx, [ebp - 0x28]
push 0x1e
call fcn.004052c0
add esp, 4
cmp byte [ebp - 0x22], 1
jne case.0x405496.97
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.00404310
test al, al
je case.0x405496.97
movzx eax, word [ebp - 0x12]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x10]
movups xmmword [ebp - 0x47], xmm0
mov word [ebp - 0x44], ax
movzx eax, word [esi + 8]
mov word [ebp - 0x3a], ax
mov al, byte [esi + 0xa]
movq qword [ebp - 0x37], xmm0
movq xmm0, qword [esi]
mov byte [ebp - 0x38], al
movzx eax, word [edi + 8]
mov dword [ebp - 0x2f], 0
mov word [ebp - 0x2f], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x42], xmm0
movq xmm0, qword [edi]
mov word [ebp - 0x2c], 0xff
mov word [ebp - 0x48], 0x1ec1
mov byte [ebp - 0x46], 0x62
movq qword [ebp - 0x37], xmm0
mov byte [ebp - 0x2d], al
call fcn.0041d0c0
test eax, eax
je case.0x405496.97
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x48]
push 0x1e
jmp 0x405750
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.004060b0
jmp case.0x405496.97
mov edi, dword [ebp + 8]
lea ebx, [edi + 6]
push ebx
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x446e50
call fcn.0041ad00
add esp, 0xc
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.GUID
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x405661
or esi, eax
jmp 0x405674
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov esi, eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 4]
mov edx, esi
mov ecx, dword [ebp - 8]
push ebx
push eax
call fcn.00406910
add esp, 8
jmp case.0x405496.97
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.00406500
jmp case.0x405496.97
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1f], xmm0
mov word [ebp - 0xf], 0
mov byte [ebp - 0xd], 0
movzx edx, word [ecx + 6]
movzx eax, word [ecx + 4]
add ecx, 8
push edx
mov word [ebp - 0x1a], ax
push ecx
movzx eax, word [ecx + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0x10], ax
mov al, byte [ecx + 0xa]
push str.WZ_DelMail__s__d
push 0x446e50
mov word [ebp - 0x20], 0x14c1
mov byte [ebp - 0x1e], 0x73
mov word [ebp - 0x1c], dx
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 0xe], al
call fcn.0041ad00
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x447a7e
call fcn.0042415e
add esp, 4
mov byte [ebp - 0x1d], al
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 - 8]
lea edx, [ebp - 0x20]
push 0x14
call fcn.004052c0
add esp, 4
jmp 0x405768
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret