Function at 0x405060
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.0x405081.97
movzx eax, byte [eax + 0x40538c]
jmp dword [eax*4 + 0x405364]
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.004053a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.004057a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.00405aa0
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 0x442698
mov word [ebp - 0x20], 0x1ec1
mov byte [ebp - 0x1e], 0x65
movq qword [ebp - 0xe], xmm0
mov byte [ebp - 4], al
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x443e7e
call fcn.0041acc9
add esp, 4
mov byte [ebp - 0x1a], al
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1e
lea edx, [ebp - 0x20]
mov ecx, esi
call fcn.00404ea0
add esp, 4
cmp byte [ebp - 0x1a], 1
jne case.0x405081.97
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.00403910
test al, al
je case.0x405081.97
movzx eax, word [ebp - 6]
xor edx, edx
movq xmm0, qword [edi]
mov si, word [ebp - 4]
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 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 + 0x5d56f4]
test ecx, ecx
js 0x4051f0
cmp ecx, 0x14
jge 0x4051f0
cmp dword [eax + 0x5d56f8], 0
je 0x4051f0
cmp dword [eax + 0x5d570c], 0xffffffff
je 0x4051f0
cmp word [eax + 0x5d574c], si
je 0x405202
add eax, 0x68
inc edx
cmp eax, 0x820
jl 0x4051c6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
imul ecx, edx, 0x68
add ecx, 0x5d56f0
je case.0x405081.97
mov ecx, dword [ecx + 4]
lea edx, [ebp - 0x40]
push 0x1e
call fcn.00404ea0
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.00405cb0
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 0x442698
call fcn.00413700
add esp, 0xc
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.GUID
call fcn.00413990
cmp eax, 0xffffffff
jne 0x405271
or edi, eax
jmp 0x405284
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
mov edi, eax
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
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.00406560
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.00406130
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 0x442698
mov word [ebp - 0x14], dx
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 6], al
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x443e7e
call fcn.0041acc9
add esp, 4
mov byte [ebp - 0x15], al
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00404ea0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret