Function at 0x407640
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x43f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov word [ebp - 0x38], 0x34c1
movq xmm0, qword [ebx + 6]
push esi
push edi
movzx eax, word [ebx + 4]
lea edi, [ebx + 6]
mov word [ebp - 0x34], ax
mov esi, edx
movzx eax, word [edi + 8]
mov word [ebp - 0x2a], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x28], al
movzx eax, word [ebx + 0x19]
mov word [ebp - 0x1f], ax
mov al, byte [ebx + 0x1b]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x80]
movq qword [ebp - 0x32], xmm0
movq xmm0, qword [ebx + 0x11]
push edi
push eax
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x36], 4
movq qword [ebp - 0x27], xmm0
mov byte [ebp - 0xe], 1
call fcn.004039a0
test al, al
je 0x407946
cmp byte [ebp - 0x60], 0
je 0x407946
mov eax, dword [ebx + 0x20]
cmp eax, dword [ebp - 0x50]
jne 0x407946
mov eax, dword [ebx + 0x24]
cmp eax, dword [ebp - 0x4c]
jne 0x407946
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebp - 0x48]
jne 0x407946
mov eax, dword [ebx + 0x2c]
cmp eax, dword [ebp - 0x44]
jne 0x407946
push edi
push str.SELECT_sno__numb_bloc_code_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x43ff40
call fcn.00408520
add esp, 0xc
test al, al
je 0x407926
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407926
push 0xe
lea eax, [ebp - 0x1c]
push eax
push str.sno__numb
call fcn.004087d0
xor eax, eax
xor esi, esi
cmp ax, word [0x43ffb4]
jge 0x40776a
mov edi, 0x43ffb6
push edi
push str.bloc_code
call fcn.00416182
add esp, 8
test eax, eax
je 0x4078cb
movsx eax, word [0x43ffb4]
inc esi
add edi, 0x1e
cmp esi, eax
jl 0x407745
or eax, 0xffffffff
push dword [0x43ff4c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov byte [ebp - 0xd], al
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ff4c]
call edi
movzx eax, word [ebp - 0x58]
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0x54]
mov word [ebp - 0xa], ax
mov al, byte [ebp - 0x52]
mov byte [ebp - 8], al
mov al, byte [ebp - 0x51]
mov byte [ebp - 7], al
lea eax, [ebx + 6]
push eax
push 0x50cd24
push 0x50cd8c
push 0x50cd58
push str.SELECT__s_FROM__s_WHERE__s_s
push 0x43ff40
call fcn.00408520
add esp, 0x18
test al, al
je 0x40790b
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40790b
xor eax, eax
xor esi, esi
cmp ax, word [0x43ffb4]
jge 0x407825
mov edi, 0x43ffb6
nop
push edi
push 0x50cd58
call fcn.00416182
add esp, 8
test eax, eax
je 0x4078eb
movsx eax, word [0x43ffb4]
inc esi
add edi, 0x1e
cmp esi, eax
jl 0x407800
or eax, 0xffffffff
push dword [0x43ff4c]
mov word [ebp - 6], ax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [ebp - 0x37]
mov esi, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.00409430
movzx eax, word [ebx + 4]
sub esp, 0x40
movups xmm0, xmmword [ebp - 0x80]
mov word [ebp - 0x64], ax
imul eax, esi, 0x70
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xffffffff
movzx eax, word [eax + 0x50cf5c]
mov word [ebp - 0x62], ax
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [eax + 0x30], xmm0
call fcn.00403b50
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c166
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x40776a
shl esi, 0xd
add esi, 0x440b6e
push esi
call fcn.00416aeb
add esp, 4
jmp 0x40776d
cmp esi, 0xffffffff
je 0x407825
shl esi, 0xd
add esi, 0x440b6e
push esi
call fcn.00416aeb
add esp, 4
jmp 0x407828
push dword [0x43ff4c]
call esi
push 2
push dword [0x43ff4c]
call edi
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 0xe], 2
jmp 0x40794a
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ff4c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0xe], 2
jmp 0x40794a
mov byte [ebp - 0xe], 4
movzx eax, byte [ebp - 0x37]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.00409430
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c166
mov esp, ebp
pop ebp
ret