Function at 0x4054d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov dword [ebp - 8], ecx
jmp 0x4054ef
movzx eax, byte [ebp - 1]
add eax, 0xffffffa0
cmp eax, 0x13
ja case.0x405506.97
movzx eax, byte [eax + 0x40594c]
jmp dword [eax*4 + 0x405924]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.00405960
jmp case.0x405506.97
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.00405d60
jmp case.0x405506.97
mov ebx, dword [ebp + 8]
movq xmm0, qword [ebx + 6]
lea edi, [ebx + 6]
lea esi, [ebx + 0x11]
movq qword [ebp - 0x3d], xmm0
movq xmm0, qword [esi]
movzx eax, word [ebx + 4]
mov word [ebp - 0x40], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x35], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x33], al
movzx eax, word [esi + 8]
mov word [ebp - 0x2a], ax
mov al, byte [esi + 0xa]
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
push esi
push eax
mov word [ebp - 0x44], 0x1ec1
mov byte [ebp - 0x42], 0x64
movq qword [ebp - 0x32], xmm0
call fcn.004046c0
test al, al
mov eax, 0xffff
je 0x40558e
movzx eax, word [ebp - 0xc]
cmp byte [ebx + 3], 0
push esi
mov byte [ebp - 0x27], al
push edi
jne 0x4055eb
push str.WZ_WaitFriendDel__s__s
push 0x440e30
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x441a62
call fcn.00422137
add esp, 4
mov byte [ebp - 0x3e], al
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1e
lea edx, [ebp - 0x44]
jmp 0x405902
push str.WZ_FriendAdd__s__s
push 0x440e30
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x441a62
call fcn.00422137
add esp, 4
mov byte [ebp - 0x3e], al
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x44]
push 0x1e
call fcn.00405330
add esp, 4
cmp byte [ebp - 0x3e], 1
jne case.0x405506.97
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.004046c0
test al, al
je case.0x405506.97
movzx eax, word [ebp - 0x2e]
movq xmm0, qword [esi]
mov word [ebp - 0x60], ax
movzx eax, word [esi + 8]
mov word [ebp - 0x56], ax
mov al, byte [esi + 0xa]
mov byte [ebp - 0x54], al
movzx eax, word [edi + 8]
mov word [ebp - 0x4b], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x49], al
lea eax, [ebp - 0x24]
movq qword [ebp - 0x5e], xmm0
movq xmm0, qword [edi]
push esi
push eax
mov word [ebp - 0x64], 0x1ec1
mov byte [ebp - 0x62], 0x62
movq qword [ebp - 0x53], xmm0
call fcn.004046c0
test al, al
mov eax, 0xffff
je 0x4056b6
movzx eax, word [ebp - 0xc]
mov byte [ebp - 0x48], al
mov ecx, dword [ebp - 0x2c]
call fcn.00419120
test eax, eax
je case.0x405506.97
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x64]
push 0x1e
jmp 0x405905
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
lea edi, [ecx + 6]
lea esi, [ecx + 0x11]
movq qword [ebp - 0x3d], xmm0
movq xmm0, qword [esi]
movzx eax, word [ecx + 4]
mov word [ebp - 0x40], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x35], ax
mov al, byte [edi + 0xa]
push esi
mov byte [ebp - 0x33], al
movzx eax, word [esi + 8]
push edi
mov word [ebp - 0x2a], ax
mov al, byte [esi + 0xa]
push str.WZ_FriendDel__s__s
push 0x440e30
mov word [ebp - 0x44], 0x1ec1
mov byte [ebp - 0x42], 0x65
movq qword [ebp - 0x32], xmm0
mov byte [ebp - 0x28], al
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x441a62
call fcn.00422137
add esp, 4
mov byte [ebp - 0x3e], al
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x44]
push 0x1e
call fcn.00405330
add esp, 4
cmp byte [ebp - 0x3e], 1
jne case.0x405506.97
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.004046c0
test al, al
je case.0x405506.97
movzx eax, word [ebp - 0x2e]
movq xmm0, qword [esi]
mov word [ebp - 0x60], ax
movzx eax, word [esi + 8]
mov word [ebp - 0x56], ax
mov al, byte [esi + 0xa]
mov byte [ebp - 0x54], al
movzx eax, word [edi + 8]
movq qword [ebp - 0x5e], xmm0
movq xmm0, qword [edi]
mov word [ebp - 0x4b], ax
mov al, byte [edi + 0xa]
mov word [ebp - 0x64], 0x1ec1
mov byte [ebp - 0x62], 0x62
movq qword [ebp - 0x53], xmm0
mov byte [ebp - 0x49], al
mov byte [ebp - 0x48], 0xff
jmp 0x4056b9
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.00405fd0
jmp case.0x405506.97
mov edi, dword [ebp + 8]
lea ebx, [edi + 6]
push ebx
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x440e30
call fcn.00416550
add esp, 0xc
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.GUID
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x405827
or esi, eax
jmp 0x40583a
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov esi, eax
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
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.00406800
add esp, 8
jmp case.0x405506.97
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.00406410
jmp case.0x405506.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 0x440e30
mov word [ebp - 0x1c], dx
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 0xe], al
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x441a62
call fcn.00422137
add esp, 4
mov byte [ebp - 0x1d], al
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea edx, [ebp - 0x20]
mov ecx, dword [ebp - 8]
call fcn.00405330
add esp, 4
jmp 0x40591d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret