Function at 0x407540
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x43b040]
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.004039c0
test al, al
je 0x4077d2
cmp byte [ebp - 0x58], 0
je 0x4077d2
mov eax, dword [esi + 0x20]
cmp eax, dword [ebp - 0x48]
jne 0x4077d2
mov eax, dword [esi + 0x24]
cmp eax, dword [ebp - 0x44]
jne 0x4077d2
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp - 0x40]
jne 0x4077d2
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp - 0x3c]
jne 0x4077d2
push ebx
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x43bfa0
call fcn.004083b0
add esp, 0xc
test al, al
je 0x4077b2
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4077b2
push 0xe
lea eax, [ebp - 0x1c]
push eax
push str.sno__numb
call fcn.004086c0
push str.bloc_code
call fcn.00408600
cmp eax, 0xffffffff
jne 0x407640
or eax, eax
jmp 0x407651
shl eax, 0xd
add eax, 0x43cbce
push eax
call fcn.004174e2
add esp, 4
push dword [0x43bfac]
mov byte [ebp - 0xd], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [ebp - 0x50]
push ebx
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0x4c]
push 0x508d8c
push 0x508df4
mov word [ebp - 0xa], ax
mov al, byte [ebp - 0x4a]
push 0x508dc0
mov byte [ebp - 8], al
mov al, byte [ebp - 0x49]
push str.SELECT__s_FROM__s_WHERE__s_s
push 0x43bfa0
mov byte [ebp - 7], al
call fcn.004083b0
add esp, 0x18
test al, al
je 0x407790
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407790
push 0x508dc0
call fcn.00408600
cmp eax, 0xffffffff
jne 0x4076dd
or eax, eax
jmp 0x4076ee
shl eax, 0xd
add eax, 0x43cbce
push eax
call fcn.004174e2
add esp, 4
push dword [0x43bfac]
mov word [ebp - 6], ax
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43bfac]
call eax
movzx eax, byte [ebp - 0x37]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.00409570
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 + 0x508fc4]
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.00403b80
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2a3
mov esp, ebp
pop ebp
ret
push dword [0x43bfac]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43bfac]
call eax
mov byte [ebp - 0xe], 2
jmp 0x4077d6
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43bfac]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0xe], 2
jmp 0x4077d6
mov byte [ebp - 0xe], 4
movzx eax, byte [ebp - 0x37]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.00409570
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c2a3
mov esp, ebp
pop ebp
ret