Function at 0x405580
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 0x40559f
movzx eax, byte [ebp - 1]
add eax, 0xffffffa0
cmp eax, 0x13
ja case.0x4055b6.97
movzx eax, byte [eax + 0x4058c8]
jmp dword [eax*4 + 0x4058a0]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.004058e0
jmp case.0x4055b6.97
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.00405ce0
jmp case.0x4055b6.97
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.00405fe0
jmp case.0x4055b6.97
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
lea edi, [ecx + 6]
lea esi, [ecx + 0x11]
movq qword [ebp - 0x21], xmm0
movq xmm0, qword [esi]
movzx eax, word [ecx + 4]
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
mov word [ebp - 0xe], ax
mov al, byte [esi + 0xa]
push str.WZ_FriendDel__s__s
push 0x422408
mov word [ebp - 0x28], 0x1ec1
mov byte [ebp - 0x26], 0x65
movq qword [ebp - 0x16], xmm0
mov byte [ebp - 0xc], al
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x423036
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov byte [ebp - 0x22], al
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x28]
push 0x1e
call fcn.004053e0
add esp, 4
cmp byte [ebp - 0x22], 1
jne case.0x4055b6.97
push esi
lea eax, [ebp - 0x24]
push eax
call fcn.00404510
test al, al
je case.0x4055b6.97
movzx eax, word [ebp - 0xe]
xor edx, edx
movq xmm0, qword [esi]
mov word [ebp - 0x44], ax
movzx eax, word [esi + 8]
mov word [ebp - 0x3a], ax
mov al, byte [esi + 0xa]
mov si, word [ebp - 0xc]
mov byte [ebp - 0x38], al
movzx eax, word [edi + 8]
mov word [ebp - 0x2f], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x42], xmm0
movq xmm0, qword [edi]
mov byte [ebp - 0x2d], al
xor eax, eax
mov word [ebp - 0x48], 0x1ec1
mov byte [ebp - 0x46], 0x62
movq qword [ebp - 0x37], xmm0
mov byte [ebp - 0x2c], 0xff
nop word [eax + eax]
mov ecx, dword [eax + 0x4ec6b4]
test ecx, ecx
js 0x40572a
cmp ecx, 0x14
jge 0x40572a
cmp dword [eax + 0x4ec6b8], 0
je 0x40572a
cmp dword [eax + 0x4ec6cc], 0xffffffff
je 0x40572a
cmp word [eax + 0x4ec70c], si
je 0x40573a
add eax, 0x68
inc edx
cmp eax, 0x820
jl 0x405700
jmp case.0x4055b6.97
imul ecx, edx, 0x68
add ecx, 0x4ec6b0
je case.0x4055b6.97
mov ecx, dword [ecx + 4]
lea edx, [ebp - 0x48]
push 0x1e
jmp 0x40587e
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.004061f0
jmp case.0x4055b6.97
mov edi, dword [ebp + 8]
lea ebx, [edi + 6]
push ebx
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.GUID
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40579e
or esi, eax
jmp 0x4057b2
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov esi, eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
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.00406aa0
add esp, 8
jmp case.0x4055b6.97
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.00406670
jmp case.0x4055b6.97
mov ecx, dword [ebp + 8]
mov word [ebp - 0x20], 0x14c1
mov byte [ebp - 0x1e], 0x73
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 0x422408
mov word [ebp - 0x1c], dx
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 0xe], al
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x423036
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov byte [ebp - 0x1d], al
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x20]
push 0x14
call fcn.004053e0
add esp, 4
jmp 0x405896
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret