Function at 0x405f40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov word [ebp - 0x38], 0x34c1
movq xmm0, qword [esi + 6]
lea ebx, [esi + 6]
push edi
movq qword [ebp - 0x32], xmm0
mov edi, edx
movzx eax, word [esi + 4]
movq xmm0, qword [esi + 0x11]
mov word [ebp - 0x34], ax
movzx eax, word [ebx + 8]
mov word [ebp - 0x2a], ax
mov al, byte [ebx + 0xa]
mov byte [ebp - 0x28], al
movzx eax, word [esi + 0x19]
mov word [ebp - 0x1f], ax
mov al, byte [esi + 0x1b]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x78]
push ebx
push eax
mov byte [ebp - 0x36], 4
movq qword [ebp - 0x27], xmm0
mov byte [ebp - 0xe], 1
call fcn.00402060
test al, al
je 0x40616f
cmp byte [ebp - 0x58], 0
je 0x40616f
mov eax, dword [esi + 0x20]
cmp eax, dword [ebp - 0x48]
jne 0x40616f
mov eax, dword [esi + 0x24]
cmp eax, dword [ebp - 0x44]
jne 0x40616f
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp - 0x40]
jne 0x40616f
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp - 0x3c]
jne 0x40616f
push ebx
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x410550
call fcn.00406d40
add esp, 0xc
test al, al
je 0x40614f
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40614f
push 0xe
lea eax, [ebp - 0x1c]
push eax
push str.sno__numb
call fcn.00407000
push str.bloc_code
call fcn.00406f90
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x406047
or eax, 0xffffffff
jmp 0x406055
shl eax, 0xd
add eax, 0x41117e
push eax
call ebx
add esp, 4
push dword [0x41055c]
mov byte [ebp - 0xd], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [ebp - 0x50]
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0x4c]
mov word [ebp - 0xa], ax
mov al, byte [ebp - 0x4a]
mov byte [ebp - 8], al
mov al, byte [ebp - 0x49]
push 0x4dc578
mov byte [ebp - 7], al
call fcn.00406f90
cmp eax, 0xffffffff
jne 0x4060a1
or eax, eax
jmp 0x4060af
shl eax, 0xd
add eax, 0x41117e
push eax
call ebx
add esp, 4
push dword [0x41055c]
mov word [ebp - 6], ax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [ebp - 0x37]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.00407eb0
movzx eax, word [esi + 4]
sub esp, 0x40
movups xmm0, xmmword [ebp - 0x78]
mov word [ebp - 0x5c], ax
imul eax, edi, 0x70
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xffffffff
movzx eax, word [eax + 0x4dc77c]
mov word [ebp - 0x5a], ax
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [eax + 0x30], xmm0
call fcn.004021f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408c87
mov esp, ebp
pop ebp
ret
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x41055c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0xe], 2
jmp 0x406173
mov byte [ebp - 0xe], 4
movzx eax, byte [ebp - 0x37]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.00407eb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c87
mov esp, ebp
pop ebp
ret