Function at 0x404870
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, dl
add eax, 0xffffffa0
push ebx
push esi
mov esi, ecx
push edi
cmp eax, 0x13
ja case.0x404891.97
movzx eax, byte [eax + 0x404b58]
jmp dword [eax*4 + 0x404b30]
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.00404b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.00404f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.00405240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
lea ebx, [ecx + 6]
lea edi, [ecx + 0x11]
movq qword [ebp - 0x19], xmm0
movq xmm0, qword [edi]
movzx eax, word [ecx + 4]
mov word [ebp - 0x1c], ax
movzx eax, word [ebx + 8]
mov word [ebp - 0x11], ax
mov al, byte [ebx + 0xa]
push edi
mov byte [ebp - 0xf], al
movzx eax, word [edi + 8]
push ebx
mov word [ebp - 6], ax
mov al, byte [edi + 0xa]
push str.WZ_FriendDel__s__s
push 0x439d58
mov word [ebp - 0x20], 0x1ec1
mov byte [ebp - 0x1e], 0x65
movq qword [ebp - 0xe], xmm0
mov byte [ebp - 4], al
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x43b53e
call fcn.0041a6da
add esp, 4
mov byte [ebp - 0x1a], al
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1e
lea edx, [ebp - 0x20]
mov ecx, esi
call fcn.004046d0
add esp, 4
cmp byte [ebp - 0x1a], 1
jne case.0x404891.97
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.00403270
test al, al
je case.0x404891.97
movzx eax, word [ebp - 0xa]
movq xmm0, qword [edi]
mov ecx, dword [ebp - 8]
mov word [ebp - 0x3c], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x32], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x30], al
movzx eax, word [ebx + 8]
mov word [ebp - 0x27], ax
mov al, byte [ebx + 0xa]
movq qword [ebp - 0x3a], xmm0
movq xmm0, qword [ebx]
mov word [ebp - 0x40], 0x1ec1
mov byte [ebp - 0x3e], 0x62
movq qword [ebp - 0x2f], xmm0
mov byte [ebp - 0x25], al
mov byte [ebp - 0x24], 0xff
call fcn.00413b30
test eax, eax
je case.0x404891.97
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x40]
push 0x1e
call fcn.004046d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.00405450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
lea eax, [ebx + 6]
push eax
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x439d58
call fcn.004112b0
add esp, 0xc
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.GUID
call fcn.00411500
cmp eax, 0xffffffff
jne 0x404a3e
or edi, eax
jmp 0x404a51
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov edi, eax
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [ebx + 6]
mov edx, edi
push eax
movzx eax, word [ebx + 4]
mov ecx, esi
push eax
call fcn.00405d00
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.004058d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
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 0x439d58
mov word [ebp - 0x14], dx
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 6], al
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x43b53e
call fcn.0041a6da
add esp, 4
mov byte [ebp - 0x15], al
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.004046d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret