Function at 0x4069b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x5f
lea eax, [ebp - 0x67]
mov esi, edx
push 0
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
movzx eax, word [edi + 4]
lea ebx, [edi + 6]
movq xmm0, qword [ebx]
add esp, 0xc
mov word [ebp - 0x64], ax
movzx eax, word [ebx + 8]
mov word [ebp - 0x5a], ax
mov al, byte [ebx + 0xa]
mov byte [ebp - 0x58], al
movzx eax, word [edi + 0x19]
mov word [ebp - 0x4f], ax
mov al, byte [edi + 0x1b]
mov byte [ebp - 0x4d], al
lea eax, [ebp - 0xe0]
movq qword [ebp - 0x62], xmm0
movq xmm0, qword [edi + 0x11]
push ebx
push eax
mov word [ebp - 0x68], 0x60c1
mov byte [ebp - 0x66], 4
movq qword [ebp - 0x57], xmm0
mov byte [ebp - 0x3e], 1
call fcn.00402250
test al, al
je 0x406d3d
cmp byte [ebp - 0xc0], 0
je 0x406d3d
mov eax, dword [edi + 0x20]
cmp eax, dword [ebp - 0xb0]
jne 0x406d3d
mov eax, dword [edi + 0x24]
cmp eax, dword [ebp - 0xac]
jne 0x406d3d
mov eax, dword [edi + 0x28]
cmp eax, dword [ebp - 0xa8]
jne 0x406d3d
mov eax, dword [edi + 0x2c]
cmp eax, dword [ebp - 0xa4]
jne 0x406d3d
push ebx
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x410540
call fcn.00407810
add esp, 0xc
test al, al
je 0x406d2f
push dword [0x41054c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406d2f
push 0xe
lea eax, [ebp - 0x4c]
push eax
push str.sno__numb
call fcn.00407b30
push str.bloc_code
call fcn.00407a60
cmp eax, 0xffffffff
jne 0x406ad4
or eax, eax
jmp 0x406ae6
shl eax, 0xd
add eax, 0x41116e
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x41054c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov byte [ebp - 0x3d], al
call ebx
push 2
push dword [0x41054c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [ebp - 0xb8]
mov word [ebp - 0x3c], ax
movzx eax, word [ebp - 0xb4]
mov word [ebp - 0x3a], ax
mov al, byte [ebp - 0xb2]
mov byte [ebp - 0x38], al
mov al, byte [ebp - 0xb1]
mov byte [ebp - 0x37], al
mov al, byte [ebp - 0xa0]
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x10], eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_GetAccountLevel__s
push 0x410540
call fcn.00407810
add esp, 0xc
test al, al
je 0x406d13
push dword [0x41054c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406d13
push str.AccountLevel
call fcn.00407a60
cmp eax, 0xffffffff
jne 0x406ba1
or eax, eax
jmp 0x406bb3
shl eax, 0xd
add eax, 0x41116e
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x34]
push 0x14
push eax
push str.AccountExpireDate
call fcn.00407b30
push dword [0x41054c]
call ebx
push 2
push dword [0x41054c]
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 0x410540
call fcn.00407810
add esp, 0xc
test al, al
je 0x406c49
push dword [0x41054c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406c49
push str.Lock
call fcn.00407a60
cmp eax, 0xffffffff
jne 0x406c1c
or eax, eax
jmp 0x406c2e
shl eax, 0xd
add eax, 0x41116e
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x41054c]
mov dword [ebp - 0x20], eax
call ebx
push 2
push dword [0x41054c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x406c66
push dword [0x41054c]
call ebx
push 2
push dword [0x41054c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x20], 0
movzx eax, byte [ebp - 0x67]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.00408a80
movzx eax, word [edi + 4]
sub esp, 0x78
mov word [ebp - 0xc4], ax
mov edi, esp
imul eax, esi, 0x70
mov ecx, 0x1e
lea esi, [ebp - 0xe0]
mov byte [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0xffffffff
mov byte [ebp - 0xa0], 1
movzx eax, word [eax + 0x4dc5e4]
mov word [ebp - 0xc2], ax
xor eax, eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
rep movsd dword es:[edi], dword [esi]
call fcn.004023a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409857
mov esp, ebp
pop ebp
ret
push dword [0x41054c]
call ebx
push 2
push dword [0x41054c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x3e], 2
jmp 0x406d41
push dword [0x41054c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jmp 0x406d1b
mov byte [ebp - 0x3e], 4
movzx eax, byte [ebp - 0x67]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.00408a80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409857
mov esp, ebp
pop ebp
ret