Function at 0x405460
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov word [ebp - 0x58], 0x4cc1
movq xmm0, qword [edi + 6]
lea ebx, [edi + 6]
movq qword [ebp - 0x52], xmm0
mov esi, edx
push ebx
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 0x11]
mov word [ebp - 0x54], ax
movzx eax, word [ebx + 8]
mov word [ebp - 0x4a], ax
mov al, byte [ebx + 0xa]
mov byte [ebp - 0x48], al
movzx eax, word [edi + 0x19]
mov word [ebp - 0x3f], ax
mov al, byte [edi + 0x1b]
mov byte [ebp - 0x3d], al
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 0x56], 4
movq qword [ebp - 0x47], xmm0
mov byte [ebp - 0x2e], 1
call fcn.00402060
test al, al
je 0x405771
cmp byte [ebp - 0x78], 0
je 0x405771
mov eax, dword [edi + 0x20]
cmp eax, dword [ebp - 0x68]
jne 0x405771
mov eax, dword [edi + 0x24]
cmp eax, dword [ebp - 0x64]
jne 0x405771
mov eax, dword [edi + 0x28]
cmp eax, dword [ebp - 0x60]
jne 0x405771
mov eax, dword [edi + 0x2c]
cmp eax, dword [ebp - 0x5c]
jne 0x405771
push ebx
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x40f5d0
call fcn.00406480
add esp, 0xc
test al, al
je 0x405763
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x405763
push 0xe
lea eax, [ebp - 0x3c]
push eax
push str.sno__numb
call fcn.004067a0
push str.bloc_code
call fcn.004066d0
cmp eax, 0xffffffff
jne 0x405566
or eax, eax
jmp 0x405578
shl eax, 0xd
add eax, 0x4101fe
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x40f5dc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov byte [ebp - 0x2d], al
call ebx
push 2
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [ebp - 0x70]
mov word [ebp - 0x2c], ax
movzx eax, word [ebp - 0x6c]
mov word [ebp - 0x2a], ax
mov al, byte [ebp - 0x6a]
mov byte [ebp - 0x28], al
mov al, byte [ebp - 0x69]
mov byte [ebp - 0x27], al
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_GetAccountLevel__s
push 0x40f5d0
call fcn.00406480
add esp, 0xc
test al, al
je 0x405747
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x405747
push str.AccountLevel
call fcn.004066d0
cmp eax, 0xffffffff
jne 0x4055fa
or eax, eax
jmp 0x40560c
shl eax, 0xd
add eax, 0x4101fe
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x24]
push 0x14
push eax
push str.AccountExpireDate
call fcn.004067a0
push dword [0x40f5dc]
call ebx
push 2
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [edi + 6]
push eax
push str.SELECT_top_1_Lock_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x40f5d0
call fcn.00406480
add esp, 0xc
test al, al
je 0x4056a2
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4056a2
push str.Lock
call fcn.004066d0
cmp eax, 0xffffffff
jne 0x405675
or eax, eax
jmp 0x405687
shl eax, 0xd
add eax, 0x4101fe
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x40f5dc]
mov dword [ebp - 0x10], eax
call ebx
push 2
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4056bf
push dword [0x40f5dc]
call ebx
push 2
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x10], 0
movzx eax, byte [ebp - 0x57]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.00407840
movzx eax, word [edi + 4]
sub esp, 0x40
movups xmm0, xmmword [ebp - 0x98]
mov word [ebp - 0x7c], ax
imul eax, esi, 0x70
mov byte [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xffffffff
movzx eax, word [eax + 0x4db68c]
mov word [ebp - 0x7a], ax
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x88]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x78]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [eax + 0x30], xmm0
call fcn.004021a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004085b7
mov esp, ebp
pop ebp
ret
push dword [0x40f5dc]
call ebx
push 2
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x2e], 2
jmp 0x405775
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jmp 0x40574f
mov byte [ebp - 0x2e], 4
movzx eax, byte [ebp - 0x57]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.00407840
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085b7
mov esp, ebp
pop ebp
ret